My app builds a .pdf file based on multiple .pdf docs and appends them together as one (an insurance policy). As a template doc is appended data is pulled from a database and the fields on the .pdf file are populated. The individual template .pdf files were created in v7 but the server that builds the new .pdf file is running v5. The program is working fine except the form field data cannot be seen or printed. If I click on a form field the data becomes visible. Clicking on a different field shows that field's data but the previous field's data then "hides" again. It is not a length problem or a carriage return. I opened one of the .pdf templates in v5 and duplicated one of the form fields and ran my app and the duplicated field populated correctly and shows the data. I then did a SAVE AS using v5 and tried to use the "new" .pdf file but it still did not work. What can I do short of replacing all the fields on all the .pdf templates I have? Regards!
This is really a developer question and way beyond this forum. But I do have an idea.
You say that when the form is displayed in Acrobat, and you put the focus on one of the form fields, the data becomes visible.
Try changing the Field's font. Just the font and only the font. If the data is visible after this change you have a malformed PDF. When you change the font, Acrobat rebuilds part of the internal structure and that fixes the problem. Specifically, the font specified in the /DR (default resources) key of the AcroForm dictionary is either non existant or a direct object. Either situation will cause exactly what you are seeing.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script