THotPDF.GetLoadedAnnotationDA Method

Reads the font name, font size, and RGB fill color from a loaded annotation default appearance string

Declaration

function GetLoadedAnnotationDA(PageIndex, AnnotationIndex: Integer; out AFontName: AnsiString; out AFontSize: Single; out ARed, AGreen, ABlue: Single): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based loaded page index
AnnotationIndexZero-based annotation index on the selected page
AFontNameReceives the font resource name parsed from the default appearance string
AFontSizeReceives the font size parsed from the Tf operator
ARedReceives the red fill-color component parsed from the rg operator
AGreenReceives the green fill-color component parsed from the rg operator
ABlueReceives the blue fill-color component parsed from the rg operator

Return value

Returns True when the annotation contains a string default appearance entry

Usage notes

Related APIs