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

ERROR "INVALID FDF" in Adobe Reader 8

amolbhople
Registered: May 7 2008
Posts: 2

Hi am using iText to manipulate PDF data. In my application user can select multiple forms and can submit those forms one after the other. The PDF forms are fetched runtime and buttons like "RESET","NEXT","FINISHED" are generated on forms using javascript. In v6 the code is working fine but in v7 or v8 when user clicks on "NEXT" button on form "INVALID FDF" error occurs. I am not getting where the problem is present? is there any other method to fetch PDF files with formfields,display and submit it??

My Product Information:
Reader 8.1.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The techique for using FDF in the submission process has not changed. But the security model changed considerably from Acrobat 6 to 7 with the introduction of the "trustedFunction" in the JavaScript model. Look it up. Also, adding buttons at runtime with JavaScript is only allowed in Reader on forms that have "Form Rights", this has always been true, but the rights model was changed in Acrobat 7, so that old rights enabled documents do not work in newer versions of Acrobat.

Or do you mean that you are using iText to add the buttons and not JavaScript in the FDF? Are you returning a modified PDF in the HTTP response?

Either way, I suspect the changes in security may be causing Acrobat to report an FDF error. I would suggest not creating buttons at runtime. This is not a good programming practice, because, as you can see, it reduces the robustness of your system.

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