THotPDF.GetFormFieldOptionValue Method
Reads form field option value information from the current AcroForm state. Use the value to inspect parser results, shaping tables, resource availability, or diagnostic counters without mutating document output
Declaration
function GetFormFieldOptionValue(FieldIndex, OptionIndex: Integer): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | AcroForm field name or field dictionary targeted by the helper |
OptionIndex | Zero-based index or object index used to select an existing item |
Return value
Returns an AnsiString value
Usage notes
- Use this API in the AcroForm workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized