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 - Form Creation.

Properties Methods
Fields
NeedAppearances
SigFlags
FindField
RemoveXFA

Properties


PdfAnnots Fields (Read-only)

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

bool NeedAppearances (Read/Write)

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

int SigFlags (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

PdfAnnot FindField ( String Name )

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

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:

PdfDocument objDoc = objPDF.OpenDocument( @"c:\1040nr.pdf" );
PdfAnnot objField = ovhDoc.Form.FindField("txtFirstName");
objField.SetFieldValue( "John", objFont );

For more information, see Chapter 12 - Form Fill-in.


void RemoveXFA ()

Removes the XML Forms Architecture (XFA) information from an existing form. This method is a workaround addressing partial incompatibility between AspPDF.NET and forms created by Adobe Designer 7.0+.

Usage:

PdfDocument objDoc = objPDF.OpenDocument( @"c:\1040nr.pdf" );
objDoc.Form.RemoveXFA();

' Fill in the form
...

For more information, see Section 12.2 - Adobe Acrobat 7/Designer 7 Issues.


PdfGraphics PdfFonts
Search AspPDF.net

Newsletter Signup

Other Products
AspPDF
AspUpload
AspJpeg
AspEmail
AspEncrypt
AspGrid
AspUser
  This site is owned and maintained by Persits Software, Inc. Copyright © 2003 - 2009. All Rights Reserved.