PdfForm Class

The interactive form of a loaded document. It reads the fields of the document, fills them with values, changes their appearance and flattens, removes or renames them. The changes are written when the document is saved

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
C#
public sealed class PdfForm
Inheritance
Object    PdfForm

Properties

FieldNames The names of the fields of the form, in the order they are stored in the document
Fields The fields of the form, in the order they are stored in the document
GenerateAppearances A flag indicating if the appearance of the fields is updated when their value changes, so the new value is displayed by any PDF viewer. The default value is true

Methods

AddSubstitutionFont Adds a font used to display the characters missing from the font of a field, when a value is set in a script or language the field font does not cover
ContainsField Checks if the form has a field with the given name
Equals
(Inherited from Object)
ExportFdf Exports the current values of the fields as FDF data
FlattenAllFields Flattens all the fields when the document is saved: their current appearance becomes static page content and the form is removed from the document
FlattenField Flattens a field when the document is saved: its current appearance becomes static page content and the field is removed from the form
GetField Gets the description of a field
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
GetValue Gets the current value of a field: the text of a text field, the export value of the selected option, check box or radio button, or "Off" for a check box or radio button group without a selection
GetValues Gets the export values of all the selected options of a list box
ImportData(Byte) Fills the fields with the values of FDF or XFDF data
ImportData(String) Fills the fields with the values of a FDF or XFDF file
RemoveField Removes a field from the form, together with its appearance in the pages
RenameField Renames a field
SetBackgroundColor Sets the background color of a field
SetBorderColor Sets the border color of a field
SetChecked Selects or clears a check box
SetFont Sets the font, size and color of the text displayed in a field
SetFontSize Sets the size of the text displayed in a field, or 0 to size the text automatically to fit the field
SetOptions Replaces the options of a combo box or list box
SetReadOnly Makes a field read-only or editable
SetRequired Marks a field as required or optional when the form is submitted
SetTextColor Sets the color of the text displayed in a field
SetValue Sets the value of a field: the text of a text field, the export value of the option to select in a combo box or list box, the export value of the check box or radio button to select, or "Off" to clear a check box or radio button group
SetValues Selects several options of a list box that allows several selections
SetVisibility Sets the visibility of a field on screen and in print
ToString
(Inherited from Object)

See Also