DAGetFormFieldTitle

Form fields, Direct access functionality

Description

Returns the title of the specified form field.

Syntax

Delphi

Function TPDFlib.DAGetFormFieldTitle(FileHandle, FieldIndex: Integer): WideString;

ActiveX

Function PDFlib::DAGetFormFieldTitle(FileHandle As Long, FieldIndex As Long) As String

DLL

const wchar_t* DLDAGetFormFieldTitle(int InstanceID, int FileHandle, int FieldIndex);
const char* DLDAGetFormFieldTitleA(int InstanceID, int FileHandle, int FieldIndex);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
FieldIndexThe index of the form field to work with. The first form field has an index of 1.

Return values

Returns the title of the specified form field. Returns an empty string when the file handle is invalid or FieldIndex is out of range.