TocNode
data class TocNode(val maxLevel: Int, val style: TextStyle, val indentPerLevel: Dp, val spacing: Dp) : PdfNode
Placeholder for an automatically generated table of contents.
The renderer replaces this node before layout: it collects every BookmarkNode in the document, resolves their final page numbers with a dry-run pass, and expands the placeholder into one clickable row per bookmark — title, dotted leader, page number — wired to the bookmark's position through an internal link.
Only valid in a page body. Headers, footers, and watermarks are laid out per physical page and cannot host a TOC.