Working with AcroForms in PDF using Aspose.PDF for C++

[ ]

AcroForms are the original PDF-A fillable forms based on the PDF architecture. XFA forms are XML-based forms enclosed in a PDF file. AcroForms is an older form dating back to 1998 and is still referred to as the classic PDF form today. Besides reflowing content, AcroForms can do everything that XFA forms can do, and other things that XFA cannot do. AcroForms have capabilities not found in XFA and conversely, XFA has some capabilities not found in AcroForms. For example:

  • AcroForms support the concept of “Templates”, allowing additional pages to be added to the PDF form document to support populating the form with multiple database records.

  • XFA supports the concept of document reflow allowing a field to resize if needed to accommodate data.

For a more detailed study of the possibilities of working with forms, study the following articles in the section:

  • Create AcroForm - create form from scratch, adding RadioButtonField, TextBoxField, Caption Field using C++.

  • Fill AcroForm - to fill a form field, get the field from the Document object’s Form collection.

  • Extract Data AcroForm - get values from all and individual the fields and etc.

  • Modifing AcroForm - get/set FieldLimit, remove fields in existing form, set form field font other than the 14 Core PDF Fonts with C++.

  • Posting AcroForm Data - import and export form data to and XML file.