PDF 1.7 supports two different methods for integrating data and PDF forms. •
AcroForms (also known as
Acrobat forms), introduced and included in the PDF 1.2 format specification. •
Adobe XML Forms Architecture (XFA) forms, introduced in the PDF 1.5 format specification as an optional feature (The XFA specification is not included in the PDF specification, it is only referenced.) Adobe XFA Forms are not compatible with AcroForms. When an XFA is packaged inside a PDF file, it is placed in the AcroForm document resources dictionary ("Shell PDF") or referenced from the AcroForm entry in the document catalog. Creating XFA Forms for use in Adobe Reader requires
Adobe LiveCycle Designer. Adobe Reader contains "disabled features" for use of XFA Forms, that will activate only when opening a PDF document that was created using enabling technology available only from Adobe. The XFA Forms are not compatible with Adobe Reader prior to version 6.
Profiles Starting with XFA 2.5 forms can use a subset of the full XFA capability. Currently the only specified is the XFAF profile. XFA can be used as: • '''
full XFA''' - which express all of the form, including boilerplate, directly in XFA (without any PDF or without a complete PDF background). It can be packaged inside a "shell PDF" with minimal PDF markup or as a standalone XDP. It is used for dynamic XFA forms (since XFA 2.1) and also for so called "traditional" (old-style) static XFA forms. Optionally it may include a pre-rendered depiction of the XFA form as PDF pages - but it is useful only for traditional static forms. Dynamic XFA must be rendered on file opening. •
XFAF (XFA Foreground) subset - (introduced in XFA 2.5) - a form in which each page of the XFA form overlays a PDF background. It can be used only for static XFA forms. This architecture uses only a subset of XFA. It can be packaged inside a regular PDF document or as a standalone XDP file with embedded PDF. In XFAF each XFA field corresponds to a PDF interactive field (AcroForm field).
Packaging XFA forms can be created and used as PDF 1.5 - 1.7 files or as XDP (XML Data Package). The format of an XFA resource in PDF is described by the XML Data Package Specification.
Rich text Rich text may appear in data supplied to the XFA forms, in XFA templates as default text values, as field captions, or as boilerplate (draw) content. Starting with PDF 1.5 (XFA 2.02), the text contents of variable text form fields, as well as markup annotations, may include formatting information (style information). These rich text strings are XML documents that conform to the rich text conventions specified for the XML Forms Architecture specification, which is itself a subset of the XHTML 1.0 specification, augmented with a restricted set of CSS2 style attributes. In PDF 1.6, PDF supports the rich text elements and attributes specified in the XML Forms Architecture (XFA) Specification, 2.2. In PDF 1.7, PDF supports the rich text elements and attributes specified in the XML Forms Architecture (XFA) Specification, 2.4. It was announced in 2011 that PDF 2.0 (ISO 32000 Part 2) would reference XFA 3.1, but when published, PDF 2.0 deprecated it.
PDF/A When an XFA form is converted to
PDF/A, both the boilerplate and field content are flattened into a PDF appearance stream. PDF/A forbids active content and all XFA content except, optionally, the XML Data Document (forms data created by a user). == Standardization ==