THotPDF.GetLoadedFormFieldRect Method
Reads the normalised PDF user-space bounding rectangle of the given loaded AcroForm field, or of 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 normalised PDF user-space rectangle (Left <= Right, Bottom <= Top, consistent with GetLoadedAllPageBoxes) |
Return value
Returns True when a valid four-number /Rect array was found and resolved on the field itself or on its widget child, and False otherwise
Usage notes
- Under ISO 32000-1 §7.9.5 opposite diagonal corners are normalised, so
ARect.LeftandARect.Bottomcarry the lower-left coordinates andARect.RightandARect.Topthe upper-right ones in PDF user space - Indirect
/Rectarrays, indirect numeric coordinates and multi-level/Kidswidget hierarchies are all resolved automatically