THotPDF.SetLoadedFormFieldOptions Method
Replaces the entire options list of the loaded PDF form field, writing a new set of option export values as an array of strings
Declaration
procedure SetLoadedFormFieldOptions(FieldIndex: Integer; const AOptions: THPDFAnsiStringArray);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | The zero-based index of the target form field |
AOptions | Array of strings containing the export values of the new options, which will completely replace the field's existing options |
Usage notes
This member returns no value
Usage notes
- Use this API in the AcroForm workflow before the affected page, resource, field or catalogue object is finalised
- If the field carries no option list yet, the call simply creates one
- After modifying, call EnsureLoadedFieldAppearanceStream so the visible appearance matches the new options