THotPDF.GetLoadedAnnotationPopupRect Method
Reads the normalised PDF user-space bounding rectangle of the /Popup annotation dictionary attached to 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 that page |
ARect | Receives the normalised PDF user-space rectangle (Left <= Right, Bottom <= Top, consistent with GetLoadedAllPageBoxes) |
Return value
Returns True when the annotation points at a valid /Popup dictionary carrying a four-number /Rect array, 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
/Popupdictionaries, indirect/Rectarrays and indirect numeric coordinates are all resolved automatically