Expand description
The logical structure tree (ISO 32000-1 §14.7), read per page and bottom-up.
The shape is unusual and it matters. Nothing here walks /StructTreeRoot
/K downward. Instead the page’s /StructParents key indexes the
/ParentTree, which yields the elements that own this page’s marked
content; each of those walks up its /P chain until it reaches the root,
building the ancestors it passes and linking itself into each one’s kid
list. Elements on other pages are never visited, which is why the same
logical tree looks different from each page.
Two consequences worth expecting:
- The top-level slot list is sized from the root’s
/Kbut filled only by the upward walk, so a document can report more top-level children than it can produce. The dump skips the empty slots. - Top-level linking matches direct references only, so an inline
dictionary written straight into
/Kis never linked, however well formed it is.
Structs§
- Struct
Element - A logical structure element.
- Struct
Tree - One page’s view of the document’s structure tree.
Enums§
- Kid
- One entry in a structure element’s kid list.
Functions§
- dump_
tree - Renders one page’s structure tree.