THotPDF.GetLoadedFormFieldRect Method
Reads the normalized PDF user-space bounding rectangle of the specified loaded AcroForm field or its first widget annotation.
Declaration
function GetLoadedFormFieldRect(FieldIndex: Integer; out ARect: THPDFRect): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based index of the loaded AcroForm field. |
ARect | Receives the normalized PDF user-space rectangle (Left <= Right, Bottom <= Top, matching GetLoadedAllPageBoxes). |
Return value
Returns True when a valid four-number /Rect array was found and resolved on the field or its widget child; otherwise False.
Usage notes
- Per ISO 32000-1 §7.9.5, opposite diagonal corners are normalized so
ARect.LeftandARect.Bottomhold the lower-left coordinates andARect.RightandARect.Tophold the upper-right coordinates in PDF user space. - Indirect
/Rectarrays, indirect numeric coordinates, and multi-level/Kidswidget hierarchies are resolved automatically.