Skip to main content

Forms Overview

Version: 12.0

AcroForms Overview

When merging, a form's fields can be completed, the form flattened, form fields removed, existing values from a form field read, and the locations of form fields determined. When merging PDFs, there are also options for modifying pre-existing AcroForms. These topics are covered in the following documentation pages.

TopicDescription
Form FillingDiscusses merging form field values, using AcroForm field values, reorganized AcroForm fields, and FDF files.
Form FlatteningDiscussed using flattening a form - remove all form field structures from the document and replacing them with their values.
Removing Form FieldsDiscusses removing form fields from a PDF.
Reading Form Fields ValuesShows how to read the values of AcroForm fields from an existing PDF using the Form property of the MergeDocumnt class.
Retrieving Form Field LocationsDiscusses retrieving the X and Y coordinates of a form field.
Marking Form Fields as Read OnlyShows how to mark form fields as read only so they cannot be modified once set.
important

These topics discuss working with a pre-existing form. Refer to the Interactive Forms topic for documentation on creating a form.

Form​

AcroForm fields are merged using the Form property of the MergeDocument class. The Form property - inherited from the Document class - has a Fields property, a FormFieldList that contains the FormField instances. The FormFieldList contains zero or more FormField instances. You can manipulate a form by flattening it, removing form fields, reading the form field's values and locations, and marking form fields as read only.

warning

Do not confuse the FormField class with the FormElement class and its child classes!

MODIFYING or completing a form using code uses the cete.dynamicpdf.forms namespace while CREATING a form uses the cete.dynamicpdf.pageelements.forms namespace.

This page pertains to the cete.dynamicpdf.forms namespace and the Form class and its children.