Worked example: inspect a nested handbook outline
- Example input
- A handbook PDF with bookmarks “1 Introduction”, “2 Setup”, child “2.1 Windows”, and child “2.2 macOS”.
- Example output
Four lines in source order, with the two setup children indented beneath “2 Setup”.
How to interpret it
Indentation comes from the PDF outline hierarchy itself, making a missing or misplaced bookmark visible without reconstructing headings from page text.