Class AcroForm
The interactive form (AcroForm) associated with a PDF document. Access via Form.
Inherited Members
Namespace: DRIT.Pdf.Forms
Assembly: DRIT.Pdf.dll
Syntax
public sealed class AcroForm
Properties
Fields
The collection of form fields.
Declaration
public FormFieldCollection Fields { get; }
Property Value
| Type | Description |
|---|---|
| FormFieldCollection |
NeedAppearances
When true the viewer application is responsible for generating field appearances. When false appearances must be present in the field's /AP dict. Defaults to true.
Declaration
public bool NeedAppearances { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
XFA
The XML Forms Architecture (XFA) packet model associated with this form.
Declaration
public XfaForm XFA { get; }
Property Value
| Type | Description |
|---|---|
| XfaForm |
Methods
ExportData(Stream, FormDataFormat)
Export form field values to a stream in FDF or XFDF format.
Declaration
public void ExportData(Stream stream, FormDataFormat format = FormDataFormat.Fdf)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | |
| FormDataFormat | format |
ExportData(string)
Export form field values to an .fdf or .xfdf file based on extension.
Declaration
public void ExportData(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath |
ExportData(string, FormDataFormat)
Export form field values to the specified file in the requested format.
Declaration
public void ExportData(string filePath, FormDataFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | |
| FormDataFormat | format |
ImportData(Stream, FormDataFormat)
Import field values from a stream in FDF or XFDF format.
Declaration
public void ImportData(Stream stream, FormDataFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | |
| FormDataFormat | format |
ImportData(string)
Import field values from an .fdf or .xfdf file based on extension.
Declaration
public void ImportData(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath |
ImportData(string, FormDataFormat)
Import field values from the specified file in the requested format.
Declaration
public void ImportData(string filePath, FormDataFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | |
| FormDataFormat | format |