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
返回文档全部页面注释数量的累计总和;若文档无注释则返回 0
Usage notes
- 此方法统计全文档范围内的所有注释类型,包括链接、文本注释、Widget(表单字段)等,与
GetLoadedSummary中的注释计数一致 - 若仅需某页的注释数量,请改用
GetLoadedAnnotationSubtypes并取返回数组的长度 - 仅在成功加载文档后调用;未加载文档时返回
0