THotPDF.CreateLoadedFieldWidget Method
Provides create loaded field widget behavior for the AcroForm workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function CreateLoadedFieldWidget(PageIndex: Integer; X1, Y1, X2, Y2: Single; const AFieldName, AFieldType: AnsiString; AFlags: Integer): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index or object index used to select an existing item |
X1 | Input used by CreateLoadedFieldWidget |
Y1 | Input used by CreateLoadedFieldWidget |
X2 | Input used by CreateLoadedFieldWidget |
Y2 | Input used by CreateLoadedFieldWidget |
AFieldName | AcroForm field name or field dictionary targeted by the helper |
AFieldType | AcroForm field name or field dictionary targeted by the helper |
AFlags | Input used by CreateLoadedFieldWidget |
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