Skip to main content

Module outline

Module outline 

Source
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§

OutlineItem
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.