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
| Name | Purpose |
|---|---|
FieldIndex | Zero-based loaded terminal-field index |
FieldName | Qualified 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
- The nearest field entry applies, including an explicitly empty local string
- Both overloads raise an exception when the target field does not exist
- Bulk value and name/value-pair helpers use the same effective values
- String bytes and hexadecimal string notation retain the existing raw-value convention
- This scalar getter does not serialize multi-selection arrays or signature dictionaries