THotPDF.NewLoadedAnnotation Method
Provides new loaded annotation behaviour for the document creation workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function NewLoadedAnnotation(PageIndex: Integer; X1, Y1, X2, Y2: Single; const ASubtype: AnsiString): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index or object index used to select an existing item |
X1 | Input used by NewLoadedAnnotation |
Y1 | Input used by NewLoadedAnnotation |
X2 | Input used by NewLoadedAnnotation |
Y2 | Input used by NewLoadedAnnotation |
ASubtype | Input used by NewLoadedAnnotation |
Return value
Returns a THPDFDictionaryObject 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