THotPDF.GetLoadedAnnotationInfo Method

Reads the subtype and position rectangle of a specific annotation on a specified page of the loaded PDF, facilitating rapid filtering and locating of specific annotations without parsing the entire dictionary

Declaration

function GetLoadedAnnotationInfo(PageIndex, AnnotationIndex: Integer; out ASubtype: AnsiString; out ARect: THPDFRect): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page
AnnotationIndexThe zero-based index of the target annotation in the page's Annots array
ASubtypeOut parameter receiving the annotation's Subtype string, e.g. Text, Link or Highlight

Return value

Returns True if the annotation information was read successfully

Usage notes

Related APIs