Persits Software, Inc. Web Site
 Navigator:  Home |  Object Reference |  PdfForm
PdfGraphics PdfFonts
  PdfForm Object
PdfForm represents an interactive form associated with this document. PdfForm is obtainable via PdfDocument's Form property. For more information on interactive forms, see Chapter 11 - Forms.

Properties Methods
Fields
NeedAppearances
SigFlags
FindField
RemoveXFA

Properties


Fields As PdfAnnots (Read-only)

Returns a PdfAnnots collection of PdfAnnot objects representing individual top-level form fields.

NeedAppearances As Boolean (Read/Write)

Returns or specifies a flag controlling whether to construct appearances for all form fields in the document. False by default.

SigFlags As Long (Read/Write)

Returns or specifies signature flags. The following flag bits are defined:

Bit 1: If set, the document contains at least one signature field.
Bit 2: If set, the document contains signatures that may be invalidated if the file is saved (written) in a way that alters its previous contents (such as with the "optimize" option). Merely updating the file by appending new information to the end of the previous version is safe.


Methods

Function FindField (Name As String) As PdfAnnot

Finds and returns a top-level form field specified by Name. If no fields under this name are found, the method returns Nothing.

This method is useful for automatic form fill-out purposes.

The Form Field Finder online application enables you to determine which field names your PDF form supports.

Usage:

Set Doc = Pdf.OpenDocument("c:\1040nr.pdf")
Set Field = Doc.Form.FindField("txtFirstName")
Field.SetFieldValue "John", font

For more information, see Chapter 11a - Existing Form Fill-in.


Sub RemoveXFA ()

Removes the XML Forms Architecture (XFA) information from an existing form. This method was introduced by Version 1.5.0.1 as a temporary workaround addressing partial incompatibility between AspPDF 1.5 and forms created by Adobe Designer 7.0.

Usage:

Set Doc = Pdf.OpenDocument("c:\1040nr.pdf")
Doc.Form.RemoveXFA

' Fill in the form
...

For more information, see Section 11a.2 - Adobe Acrobat 7/Designer 7 Issues.


PdfGraphics PdfFonts
Search AspPDF.com

  This site is owned and maintained by Persits Software, Inc. Copyright © 2003. All Rights Reserved.