Dictionary

XFDF - XML Forms Data Format

Learn PDF terms like XFDF. Visit PDF2Go's Dictionary for clear explanations and improve your PDF knowledge.

What is XFDF?

XFDF, short for "XML Forms Data Format," is the XML counterpart to FDF (Forms Data Format). It is defined by ISO 19444-1:2019, a standard titled "Document management - XML Forms Data Format - Part 1: Use of ISO 32000-2 (XFDF 3.0).

XFDF, an XML-based file format, is used to store form data and annotations separately from the actual PDF document. XFDF files can be used to import or export data and annotations for PDF forms. They allow for easy sharing and processing of form-related information, making it easier to manage and exchange data between different systems and applications.

What an XFDF file contains

XFDF stores the contents of a form without the form itself: field names and their values, and optionally the document the data belongs to, expressed as XML. It can also contain annotations, which is how comments are exchanged between reviewers without sending the whole PDF.

Because it is plain XML it can be produced and read by ordinary tooling, which is the main advantage over the older, PDF-syntax FDF. XFDF is standardized as ISO 19444-1.

Where it is used

  • Pre-filling a blank form by importing a data file instead of typing.
  • Collecting submissions, where each response is a small XML file instead of a copy of the document.
  • Merging a review cycle by importing several comment files back into one master PDF.

The data is only meaningful for the form it came from: field names are the link. Importing XFDF into a different form matches any field names that happen to be the same and silently ignores the rest.