THotPDF.GetLoadedTotalAnnotationCount Method
Returns the total number of annotations on all pages of the loaded PDF document
Declaration
function GetLoadedTotalAnnotationCount: Integer;
Unit
HPDFDoc
Return value
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
Returns an Integer value
Usage notes
- This method counts every annotation type across the whole document — links, text annotations, widgets (form fields) and so on — giving you the full annotation picture
- If you only need one page's annotation count, use GetLoadedAnnotationCount instead
- Only call after a document has been loaded successfully; returns 0 when no document is loaded