PDF Form Data: Import, Export, FDF, XFDF & XML
PDF Form Data: More Than Just Filling in Fields
PDF form data management covers two distinct workflows. The first is data import: programmatically populating form fields from an external source such as a database, a CRM record, or a flat data file. The second is data export: extracting completed form field values from a submitted or filled form for downstream processing, storage, or integration.
Both workflows depend on understanding the data formats that PDF forms support, and those formats differ between AcroForms and XFA forms.
Data Formats for AcroForms: FDF, XFDF, and XML
AcroForms support three standard data interchange formats.
FDF (Forms Data Format)
FDF is the original Adobe format for PDF form data exchange. An FDF file contains field names and their corresponding values, and can be imported into a matching AcroForm to populate its fields. FDF is compact and widely supported but carries only field data and some annotation information, without the full document structure.
XFDF (XML Forms Data Format)
XFDF is the XML-based successor to FDF. It encodes the same field name/value pairs as FDF but in well-formed XML, making it easier to generate and parse with standard XML tooling. XFDF is the preferred format for modern AcroForm data workflows where XML processing is already in the pipeline.
XML
Plain XML can also be used for AcroForm data interchange where the form's field structure maps to an XML schema. This is common in enterprise document automation systems where form data flows through XML-based integration layers.
Data Formats for XFA Forms: XFD, XDP, and XML
XFA forms use a different set of data formats that reflect XFA's XML-based architecture.
XFD and XDP
XDP (XML Data Package) is the primary XFA data format. It can carry both form data and form template information. XFD is a simplified XFA data format used in some legacy workflows. Both are XML-based and specific to XFA form processing.
XML
XFA forms also support direct XML data binding, where the form's data model is mapped to an XML instance document. This is the basis for LiveCycle and AEM Designer's data integration capabilities.
Annotation Appearance Generation
A related data management concern is annotation appearances. In Acrobat, annotation appearances (including field rendering) are generated dynamically when the document opens. This means a form saved without embedded appearances requires Acrobat or an equivalent rendering engine to display correctly.
PDF Forms Flattener generates and embeds annotation appearances at save time, ensuring that the flattened output renders correctly in any viewer. This is critical for forms that will be archived or delivered outside of Acrobat-controlled environments.
When You Need More Than a Command-Line Tool
PDF Forms Flattener handles flattening with embedded appearances efficiently from the command line. For workflows that require programmatic data import before flattening, data export after processing, or integration with live data sources at the API level, Forms Extension provides the additional capabilities.
Forms Extension supports importing FDF, XFDF, and XML data into AcroForms and XDP/XML into XFA forms programmatically, as part of an application workflow rather than a batch CLI process. It also supports extracting form field data from completed forms for downstream integration.
Frequently Asked Questions
What file formats can I use to import data into a PDF form?
For AcroForms, the supported import formats are FDF, XFDF, and XML. For XFA forms, the supported formats are XDP, XFD, and XML. Forms Extension supports all of these formats for programmatic data import.
What is FDF vs XFDF?
FDF (Forms Data Format) is the original Adobe binary format for PDF form data exchange. XFDF (XML Forms Data Format) is the XML-based successor to FDF. Both carry form field name/value pairs, but XFDF is easier to generate and parse with standard XML tools.
How do I populate a PDF form from a database?
Use Forms Extension to generate FDF, XFDF, or XML from your database query results, then import the data file into the corresponding PDF form using the Forms Extension data import API. This allows fully automated form population without any manual intervention.
Get a free trial of Forms Extension today.