Example of FDF or XFDF file

Is there any examples of FDF or XFDF file that
shows the layout of assigning data to field names in a PDF.
And the command line call to run it.

Thanks
Jack


jack wallace


3 Answers

Here's how you get a correctly formatted FDF or XFDF test file for your specific form.

1. Open your form in Acrobat.
2. Fill in the form fields
3. On the forms Panel (Acrobat X) or the form menu (other versions) select Manage Form Data > Export Data, or the equivelent.

Open the resulting file in a plain text editor, emphisis on "plain". The file is still valid if the ID and file path entries are deleted, but be very careful not to damage the formatting.

Thom Parker
The source for PDF Scripting Info pdfscripting.com

The Acrobat JavaScript Reference, Use it Early and Often

The most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article)

Having trouble, Why Doesn't my Script Work


Thom Parker   

You can create an example yourself buy filling in the form and exporting. For example, in Acrobat 9 you can export by selecting: Forms > Manage Forms Data > Export Data

What software would you be using to launch the data file?


George Johnson   

What to do for the "data transport" part has been said, and there is nothing better to do; the form knows best…

There are some additional keys in an FDF, such as used for transporting and/or executing JavaScript. Here, you won't get around to read the specification, which is part of the ISO 32000 (provided as part of the Acrobat SDK, downloadable from the Adobe website). You may have to get a little bit of an understanding about the structure of PDF, in order to create correct syntax (in particular, you may have to double-escape some characters (first for the FDF, second for the JavaScript)).

Hope this can help.


Max Wyss   


Please specify a reason: