Skip to main content

Form

Version: 11.0

cete.dynamicpdf.forms.form

Form​

Base class representing a PDF form.

public class Form : Resource
Public Class Form
Inherits Resource

Inheritance: Object → Resource → Form

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​

Align

CalculationOrder​

Gets the form's calculation order.

public FormCalculationOrder CalculationOrder { get; }
Public Property CalculationOrder As FormCalculationOrder

Property Value​

FormCalculationOrder

DefaultAlign​

Gets or sets the default alignment for the form.

public FormFieldAlign DefaultAlign { get; set; }
Public Property DefaultAlign As FormFieldAlign

Property Value​

FormFieldAlign

DefaultAppearance​

Gets or sets the default appearance for the form.

public string DefaultAppearance { get; set; }
Public Property DefaultAppearance As String

Property Value​

String

DefaultColor​

Gets the default color for all the variable text fields.

public DeviceColor DefaultColor { get; }
Public Property DefaultColor As DeviceColor

Property Value​

DeviceColor

DefaultFont​

Gets the font default for all the variable text fields.

public Font DefaultFont { get; }
Public Property DefaultFont As Font

Property Value​

Font

DefaultFontSize​

Gets the default font size for all the variable text fields.

public float DefaultFontSize { get; }
Public Property DefaultFontSize As Single

Property Value​

Single

DefaultResources​

Gets or sets the default appearance for the form.

public Resource DefaultResources { get; set; }
Public Property DefaultResources As Resource

Property Value​

Resource

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​

Boolean

Fields​

Gets a collection of fields for the form.

public FormFieldList Fields { get; }
Public Property Fields As FormFieldList

Property Value​

FormFieldList

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​

Boolean

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​

Boolean

Output​

Gets or Sets the output options for the form.

public FormOutput Output { get; set; }
Public Property Output As FormOutput

Property Value​

FormOutput

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​

Int32

ResourceType​

Gets the type of resource. (Inherited from Resource)

public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType

Property Value​

ResourceType

SignatureFieldsOutput​

Gets or Sets output options for the signature fields.

public FormFieldOutput SignatureFieldsOutput { get; set; }
Public Property SignatureFieldsOutput As FormFieldOutput

Property Value​

FormFieldOutput

SignatureFlags​

Gets or sets the signature flags for the form.

public SignatureFlags SignatureFlags { get; set; }
Public Property SignatureFlags As SignatureFlags

Property Value​

SignatureFlags

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​

Font

Uid​

Gets the unique ID of the resource. (Inherited from Resource)

public long Uid { get; }
Public Property Uid As Int64

Property Value​

Int64

Methods​

Draw(DocumentWriter)​

Draws the form to the given DocumentWriter object.

public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)

Parameters​

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​

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

Event Handler​

FormFieldsAddedEventHandler

See Also​

ceTe.DynamicPDF.Forms