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
| Name | Purpose |
|---|---|
PageIndex | Zero-based loaded page index |
AnnotationIndex | Zero-based annotation index on the selected page |
AFontName | Receives the font resource name parsed from the default appearance string |
AFontSize | Receives the font size parsed from the Tf operator |
ARed | Receives the red fill-color component parsed from the rg operator |
AGreen | Receives the green fill-color component parsed from the rg operator |
ABlue | Receives 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
- Parsing is best-effort and recognizes the font Tf operator and RGB fill-color rg operator
- Output values are reset before lookup and remain zero or empty when individual operators are absent