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§
- Outline
Item - One bookmark / outline entry.
- Outline
Style - Outline display-style flags from the
/Finteger.
Functions§
- count_
items - Number of outline items in the tree, counting all descendants.
- parse_
outline_ tree - Walk the catalog’s
/Outlinesdict and produce a tree ofOutlineItems.