THotPDF.GetLoadedOutlineCount Method
Returns the total number of top-level entries in the bookmarks (table of contents/outline) of the loaded PDF document, used to determine the traversal range of the bookmark tree
Declaration
function GetLoadedOutlineCount: Integer;
Unit
HPDFDoc
Return value
Returns the number of top-level bookmark entries in the document outline tree; returns 0 if the document has no outline or the outline is empty
Usage notes
- 此计数仅统计大纲树的顶层(根级别)节点,不递归统计子书签
- 结合
GetLoadedOutlineItem使用可逐条读取书签标题和目标页面 - Returning 0 does not mean the document has no content, only that the document does not contain a PDF Outlines dictionary