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
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
Returns an Integer value
Usage notes
- This count only covers top-level (root) nodes of the outline tree; child bookmarks are not counted recursively
- Combine it with GetLoadedOutlineItem to walk the bookmark list
- Returning 0 does not mean the document has no content, only that the document does not contain a PDF Outlines dictionary