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

NamePurpose
PageIndexZero-based page index in the loaded document
AnnotationIndexZero-based annotation index on that page
ARectReceives 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

Related APIs