cete.dynamicpdf.forms.form
Form
- Namespace: ceTe.DynamicPDF.Forms
- Assemblies: ceTe.DynamicPDF.40.dll
Base class representing a PDF form.
public class Form : Resource
Public Class Form
Inherits Resource
Inheritance: Object → Resource → Form
Licensing
Reading the values or properties of a field is a DynamicPDF Merger Standard Edition feature (for modifying field values see below). One of the following licenses is required for non-evaluation usage:
- DynamicPDF Merger for .NET Standard Edition
- DynamicPDF Merger for .NET Professional Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Professional Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Modifying the values of the fields (i.e. form filling) is a Professional Edition Feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Merger for .NET Professional Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Professional Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Properties
Align
Gets or Sets the document’s wide alignment for variable text fields.
public Align Align { get; set; }
Public Property Align As Align
Property Value
CalculationOrder
Gets the form's calculation order.
public FormCalculationOrder CalculationOrder { get; }
Public Property CalculationOrder As FormCalculationOrder
Property Value
DefaultAlign
Gets or sets the default alignment for the form.
public FormFieldAlign DefaultAlign { get; set; }
Public Property DefaultAlign As FormFieldAlign
Property Value
DefaultAppearance
Gets or sets the default appearance for the form.
public string DefaultAppearance { get; set; }
Public Property DefaultAppearance As String
Property Value
DefaultColor
Gets the default color for all the variable text fields.
public DeviceColor DefaultColor { get; }
Public Property DefaultColor As DeviceColor
Property Value
DefaultFont
Gets the font default for all the variable text fields.
public Font DefaultFont { get; }
Public Property DefaultFont As Font
Property Value
DefaultFontSize
Gets the default font size for all the variable text fields.
public float DefaultFontSize { get; }
Public Property DefaultFontSize As Single
Property Value
DefaultResources
Gets or sets the default appearance for the form.
public Resource DefaultResources { get; set; }
Public Property DefaultResources As Resource
Property Value
ExcludeXfaDataIfValuesChanged
Gets or sets a value indicating to exclude the XFA if the form field value is changed.
public bool ExcludeXfaDataIfValuesChanged { get; set; }
Public Property ExcludeXfaDataIfValuesChanged As Boolean
Property Value
Fields
Gets a collection of fields for the form.
public FormFieldList Fields { get; }
Public Property Fields As FormFieldList
Property Value
IsReadOnly
Gets or sets a value indicating if the form is read only.
public bool IsReadOnly { get; set; }
Public Property IsReadOnly As Boolean
Property Value
NeedsAppearances
Gets or sets a value indicating if the form needs appearance streams.
public bool NeedsAppearances { get; set; }
Public Property NeedsAppearances As Boolean
Property Value
Output
Gets or Sets the output options for the form.
public FormOutput Output { get; set; }
Public Property Output As FormOutput
Property Value
RequiredPdfObjects
Gets the number of PDF objects required by the resource. (Inherited from Resource)
public int RequiredPdfObjects { get; }
Public Property RequiredPdfObjects As Int32
Property Value
ResourceType
Gets the type of resource. (Inherited from Resource)
public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType
Property Value
SignatureFieldsOutput
Gets or Sets output options for the signature fields.
public FormFieldOutput SignatureFieldsOutput { get; set; }
Public Property SignatureFieldsOutput As FormFieldOutput
Property Value
SignatureFlags
Gets or sets the signature flags for the form.
public SignatureFlags SignatureFlags { get; set; }
Public Property SignatureFlags As SignatureFlags
Property Value
SubstituteFont
Gets or Sets the Font to be used as a substitute font for form fields.
public Font SubstituteFont { get; set; }
Public Property SubstituteFont As Font
Property Value
Uid
Gets the unique ID of the resource. (Inherited from Resource)
public long Uid { get; }
Public Property Uid As Int64
Property Value
Methods
Draw(DocumentWriter)
Draws the form to the given DocumentWriter object.
public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
DocumentWriter object to receive the form's output.
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetTextFields()
Returns a collection of text form fields.
public TextFieldList GetTextFields()
Function GetTextFields() As TextFieldList
Returns
A TextFieldList object containing the visible form fields.
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
RequireLicense(Int32)
Sets the required license level for the form.
public void RequireLicense(int requiredLicenseLevel)
Sub RequireLicense(requiredLicenseLevel As Integer)
Parameters
- requiredLicenseLevel: Int32
The license level required.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .
Events
FormFieldsAdded
Occurs when the fields are added to the Document's Form.
public event FormFieldsAddedEventHandler Form.FormFieldsAdded;
Public Event Form.FormFieldsAdded As FormFieldsAddedEventHandler