PdfForm Class |
Namespace: Atalasoft.PdfDoc.Generating.Forms
The PdfForm type exposes the following members.
Name | Description | |
---|---|---|
DefaultAppearance |
Gets or sets the default text appearance for all child fields in the form (if not otherwise specified)..
| |
FieldCalculationSequence |
Gets the field calculation sequence. If form fields contain a field calculation, the order of calculation
can be specified by this list. A PDF viewer will perform the recalculation based on the order of this list.
| |
Fields |
Gets the fields present in this form. Any BaseWidgetAnnotation
objects in the Fields tree must also be contained in an Annotations collection on a page in the
document.
| |
FormHasSignatures |
Gets a value indicating whether form has signature fields.
| |
IsEmpty |
Gets a value indicating whether there are any fields in this form.
| |
SavingWillInvalidateSignatures |
Gets a value indicating whether saving the document will invalidate signatures.
| |
TextAlignment |
Gets or sets the text alignment for all child fields in the form (if not otherwise specified).
| |
XFA |
Gets a collection of StoredStream objects that
represent packets of XFA data contained within a PDF Document. Each StoredStream will contain XML data that
represents the XFA data. XFA may be contained within a single stream or within a collection of packets, each of
which represents a subsection of the XFA model.
|
Name | Description | |
---|---|---|
ContainsFormElement |
Determines whether this form contains the given IFormElement | |
Dispose | Releases all resources used by the PdfForm | |
Dispose(Boolean) | Releases the unmanaged resources used by the PdfForm and optionally releases the managed resources | |
EnforceParentage |
Enforces the parent/child relationships in form elements within a form field hierarchy.
This is done by doing a breadth-first traversal of all form elements and forcing the
child elements to point back to the parent. Calling this method will ensure that
FieldFullName will return the correct value. Before saving
a document or validation this method will get called automatically. Calling this method will ensure
that the FieldFullName property returns the correct value.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsFieldLeaf |
Determines whether a give IFormElement is a leaf or a node.
| |
MakeRepairContext |
Makes the repair context for repairing problems in this object. An object implementing IValidatable
should at least return an empty RepairContext object. PdfForm does not require an object passed in.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Validate |
Validates the object looking for problems.
|
PdfGeneratedDocument doc = new PdfGeneratedDocument(); doc.Form = new PdfForm(); PdfGeneratedPage page = doc.AddPage(PdfDefaultPages.Letter); TextWidgetAnnotation text = new TextWidgetAnnotation(new PdfBounds(72, 400, 200, 20), "name", null); page.Annotations.Add(text); doc.Form.Fields.Add(text); doc.Save("output.pdf");