Expand description
Document outline / bookmarks (ISO 32000-1 §12.3.3). The catalog’s
/Outlines dictionary roots a tree of outline items, each a /Title plus a
navigation target — a destination (/Dest) or an action (/A, typically a
go-to or a URI). Items are linked as a doubly-linked sibling list (/First,
/Last, /Next, /Prev) with /First//Count descending into children.
This reads the tree into a nested OutlineItem structure, resolving each
item’s target through crate::destinations. Bounded by depth, a visited
set, and a global item cap so a malformed/cyclic tree cannot loop.
Structs§
- Outline
Item - One bookmark: a title, an optional navigation target, and nested children.
Functions§
- parse_
outlines - Parse the document outline (bookmarks). Empty when the document has none.