DAGetFormFieldCount

Form fields, Direct access functionality

Description

Returns the number of form fields in the document.

Syntax

Delphi

Function TPDFlib.DAGetFormFieldCount(FileHandle: Integer): Integer;

ActiveX

Function PDFlib::DAGetFormFieldCount(FileHandle As Long) As Long

DLL

int DLDAGetFormFieldCount(int InstanceID, int FileHandle);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions

Return values

Returns the number of form fields in the document. Returns 0 when the file handle is invalid or the document has no form.