BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

Item Property

Get the form field of a specified item.

Property Item(Index) As IFormField

FormField this[NameOrIndex IndexOrName]

FormField getItem(NameOrIndex IndexOrName) throws PDFDocumentException

Where NameOrIndex is a utility class:

public class NameOrIndex
{
   public NameOrIndex(String name);
   public NameOrIndex(int index);
}

Type

FormField (read-only)

Parameters

Remarks

You can specify either the form index number (starts from zero), or form field name.

Example Usage

Set oDocument = CreateObject("easyPDF.PDFDocument.8")
 
oDocument.Open "c:\test\input.pdf"
 
Set oFormFields = oDocument.FormFields 
 
If oFormFields.Count >  0 Then
    Set oFormField = oFormFields.Item(0)
    MsgBox "Form field name: " + oFormField.Name
End If
 
Set oFormField = oFormFields.Item("MyItem")
MsgBox "Form field name: " + oFormField.Name
 
oDocument.Close False