THotPDF.FindLoadedFormFieldByName Method
Finds loaded form field by name data in a loaded document. The lookup supports import, page-copy, form, resource, or object-inspection workflows that need to locate existing PDF structures
Declaration
function FindLoadedFormFieldByName(const FieldName: AnsiString; out FieldIndex: Integer): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldName | AcroForm field name or field dictionary targeted by the helper |
FieldIndex | AcroForm field name or field dictionary targeted by the helper |
Return value
Returns a THPDFDictionaryObject 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
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values