THotPDF.AddLoadedTextAnnotation Method
Adds loaded text annotation data to the document creation workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
procedure AddLoadedTextAnnotation(PageIndex: Integer; X1, Y1, X2, Y2: Single; const AContents, AAuthor: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index or object index used to select an existing item |
X1 | Input used by AddLoadedTextAnnotation |
Y1 | Input used by AddLoadedTextAnnotation |
X2 | Input used by AddLoadedTextAnnotation |
Y2 | Input used by AddLoadedTextAnnotation |
AContents | Human-readable text stored in the PDF object, action, annotation, or structure element |
AAuthor | Input used by AddLoadedTextAnnotation |
Return value
This member does not return a value
Usage notes
- Use this API in the document creation 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
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values