THotPDF.GetLoadedAnnotationPopupRect Method
Reads the normalized PDF user-space bounding rectangle of the /Popup annotation dictionary associated with a loaded markup annotation.
Declaration
function GetLoadedAnnotationPopupRect(PageIndex, AnnotationIndex: Integer; out ARect: THPDFRect): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based page index in the loaded document. |
AnnotationIndex | Zero-based annotation index on the page. |
ARect | Receives the normalized PDF user-space rectangle (Left <= Right, Bottom <= Top, matching GetLoadedAllPageBoxes). |
Return value
Returns True when the annotation references a valid /Popup dictionary with a four-number /Rect array; 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
/Popupdictionaries, indirect/Rectarrays, and indirect numeric coordinates are resolved automatically.