Skip to main content

Module outline

Module outline 

Source
Expand description

Document outlines (bookmarks).

The outline is a tree rooted at the catalog’s /Outlines dict. Each node is a chain of siblings linked by /Next and /Prev, with the first sibling reachable via the parent’s /First and the last via /Last. Children of a node are reached via the node’s own /First chain.

Each node may have a /Dest (destination) or an /A (action), plus optional /C (color), /F (style flags), and /Count (open-state and child count).

Structs§

OutlineItem
One bookmark / outline entry.
OutlineStyle
Outline display-style flags from the /F integer.

Functions§

count_items
Number of outline items in the tree, counting all descendants.
parse_outline_tree
Walk the catalog’s /Outlines dict and produce a tree of OutlineItems.