THotPDF.GetFormFieldValue Method

Reads a loaded field's current value, resolving indirect objects and inherited /V entries through its parent fields

Declaration

function GetFormFieldValue(FieldIndex: Integer): AnsiString;
function GetFormFieldValue(const FieldName: AnsiString): AnsiString;

Unit

HPDFDoc

Parameters

NamePurpose
FieldIndexZero-based loaded terminal-field index
FieldNameQualified field name, including parent components

Return value

Returns the existing AnsiString representation of a scalar value; missing values and non-scalar values return an empty string

Usage notes

Related APIs