THotPDF.SetLoadedAnnotationColor Method
Sets loaded annotation color state for subsequent graphics and colour management output. The setting affects later page drawing, page dictionary entries, conformance metadata, or text emission rather than already-written content
Declaration
procedure SetLoadedAnnotationColor(PageIndex, AnnotationIndex: Integer; ARed, AGreen, ABlue: Single);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index or object index used to select an existing item |
AnnotationIndex | Zero-based index or object index used to select an existing item |
ARed | Input used by SetLoadedAnnotationColor |
AGreen | Input used by SetLoadedAnnotationColor |
ABlue | Input used by SetLoadedAnnotationColor |
Return value
This member does not return a value
Usage notes
- Use this API in the graphics and colour management workflow before the affected page, resource, field, or catalog object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised
- Register named colour resources before using them from page-level painting commands
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values