These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Best way to read data into a pdf form on the web?

pbarnet
Registered: May 23 2008
Posts: 3

Hello,
In the past I used fdf in an asp page to dynamically populate data in a pdf form on the web. Now, with Acrobat 8, after designing the form in LiveCycle, that function no longer populates the form fields. What is the best way to accomplish this? I have an asp page that pulls a recordset and calls up the pdf. I would like for the pdf form to display the values of the fields in the recordset. Any help is greatly appreciated!!

TIA,
pbarnet

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Use XDP. Which is the native data format for XFA forms. You can see the exact format that needs to be returned to the form by opening it in Acrobat, filling out the form with test data, and exporting the form data to XDP.

Although, FDF should still work. The trick is to get the names right. Use the same method as outlined above to export the form data to FDF. Except, use the JavaScript submitForm function. Run it from the console window. The resulting FDF will show the correct field names. Be sure to export as UTF-8. XFA forms like to use Unicode names.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

pbarnet
Registered: May 23 2008
Posts: 3
Hi Thomp,
Thanks for your response. I'm new to LiveCycle and not sure how to export to xml or fdf. I have a form with fields, how do I export to get the correct syntax for the fields names?
Thanks so much!
-pbarnet
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Look on the Acrobat "Form -> manage form data -> export data". This displays the SaveAs dialog. Select XDP as the output format. Then do this again with FDF as the output format. This will give you a good idea of the differences.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script