What's FDF?

来源:百度文库 编辑:神马文学网 时间:2024/04/28 02:59:04

What is FDF?

ANSWER:FDF stands for "Forms Data Format." FDF is a file format forrepresenting form data and annotations that are contained in a PDF form.

The FDF format was invented by Adobe Systems Incorporated, and it is based onthe PDF format. You can find a detailed specification for the FDF format inAdobe's PDF Reference.

The FDF format can be used in a variety of workflows. Here are a couple ofexamples:
Sending form data to a server and receiving modified form data back from theserver. This workflow would look something like this:

  • Form data is submitted to the server in FDF format. (Typically, this would happen when a human user at a client machine clicks a "Submit" button on the form.)

  • On the server, the FDF data is modified.

  • The server sends the modified FDF data back to the client.

  • At the client machine, the fields in the form are populated with the modified data.

Archiving form data. This workflow would look something like this:

  • A human user uses Adobe Acrobat or another PDF-editing/viewing application to export the form data in FDF format. (To do this in Adobe Acrobat 6.x for Windows, click Advanced > Forms > Export Forms Data and choose Acrobat FDF Files (*.fdf) for "Save as type." The procedure might be different if you're using another version of Adobe Acrobat.)

  • The FDF file is saved in the company's archives.

  • To look at the form data, a human user would use Adobe Acrobat or some other PDF-viewing/editing application* to open the FDF file; this would cause the PDF-viewing/editing application to 1) find the PDF form from which the form data was exported, 2) load the form data into the form, 3) display the form with the loaded data on the screen.

You might be wondering why you'd want to archive an FDF file containing the datafor a PDF form instead of simply archiving a uniquely named version of theentire PDF form with the data included in it. There are two reasons:

  1. An FDF file containing form data for a PDF form is much smaller than the file containing the PDF form itself, so archiving FDF files requires less storage space than archiving PDF forms.

  2. Some software that people use to view and interact with PDF forms does not allow the user to save a filled-in PDF form. For example, the free "Adobe Reader" software does not allow this.

IMPORTANT NOTE TO DEVELOPERS: An FDF file contains the filename and location ofthe PDF form from which the form data in that particular FDF file was exported.Adobe Acrobat (and any PDF-viewing/editing application that supports PDF forms)relies on that filename and location in order to retrieve and open theappropriate PDF form when opening an FDF file. In other words: when opening anFDF file, a PDF viewing/editing application assumes that the PDF form from whichthe form data was exported is available at the specified location.

Therefore, if you are a developer that is considering implementation of a systemthat archives FDF data, you'll want to make sure that your system has a reliablemethod of storing the required PDF forms in known locations. Otherwise, it willnot always be possible for PDF-viewing/editing applications to retrieve and openthe PDF Forms when they are needed.


*Some PDF-viewing/editing applications do not support all features andfunctionality related to PDF forms.

Creating your own FDF files

As mentioned, the two workflows described above are just examples of how you canutilize FDF data. Both of those workflows rely on a PDF-viewing/editingapplication such as Adobe Acrobat for creation of the FDF data.

However, you don't have to rely on a PDF-viewing/editing application to generateFDF data — it is possible to generate FDF data yourself, and depending upon whatyou need to accomplish, it might make sense to do just that. For example, if youhave data stored in a database, it would be possible (if you are a programmer orif you have access to someone with programming skills) to extract data from yourdatabase and put it in FDF format. Or, if you have a Web site where sitevisitors enter data into an HTML form, you or your programmer could write ascript to convert the data entered by users to FDF format. As stated below, theFDF format is described in detail in the Adobe PDF Reference, so you'd need toread the relevant sections of that document to gain an understanding of the FDFformat before you'd be able to generate your own FDF data.

Populating PDF forms with FDF data dynamically

You don't have to rely on a PDF-viewing/editing application to load FDF datainto PDF forms. Instead, you (or your programmer) can use a programmer's toolkitto put FDF data into your PDF forms automatically. VeryPDF sells threeprogrammer's toolkits that allow you populate PDF forms with FDF dataautomatically: PDF Form Filler Command Line, PDF Form Filler SDK, FDF Merger.

Depending on which of these programmer's toolkits you're using, you might evenbe able to put graphics as well as text into your PDF forms!

How to get more information about the FDF format

The FDF specification is part of Adobe's PDF specification, so you'll find theFDF specification inAdobe's PDF Reference.

URL: http://www.verypdf.com/pdfform/fdf.htm