THotPDF.ClearLoadedAnnotations Method
Clears all annotations from a specified page in the loaded PDF document, deleting all entries in that page's annotation array at once
Declaration
procedure ClearLoadedAnnotations(PageIndex: Integer);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the target page; 0 indicates the first page |
Usage notes
This member returns no value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- If you only need to delete some annotations, please use RemoveLoadedAnnotation and operate in reverse index order
- Changes must be saved before they can be written to the output file