SHOW-PDF-TAGS(1)

πŸ“¦ version 2026.0, in alpine 3.24

πŸ’– show-pdf-tags(1) β€” General Commands Manual πŸ’–

okay bestie, sit down, hydrate, because we're about to peek inside a tagged PDF's soul. this is a General Commands Manual page for show-pdf-tags, and it is lowkey iconic.


✨ NAME ✨

show-pdf-tags β€” show the internal Structure Tree of a tagged PDF file πŸ¦‹


🌸 SYNOPSIS 🌸

show-pdf-tags [<options>] <PDF-File>

πŸ’… DESCRIPTION πŸ’…

so the show-pdf-tags script does exactly what it says on the tin: it shows the internal Structure Tree of a tagged PDF File. no cap. πŸŽ€

you can see that structure in a few different ways:

  • an indented tree display using Unicode line characters
  • as XML
  • or (and this one is primarily for debugging, so, devs only, iykyk) as a linearisation of the Lua table structure obtained from the PDF file

now, the XML display? it will use element names matching the names of the structure elements β€” unless you bring the --map option into the chat, in which case the standard PDF Structure element names get used instead, as specified in the role mapping in the file. periodt.

it accepts a single PDF File and outputs to the standard output stream. one file, one stream, very demure.

Valid <options> are:

  • --help, -h β€” prints this message and exits (the classic "help me, i'm lost" move) πŸ™ˆ
  • --ignore-case β€” ignore case when sorting directory listing
  • --tree β€” show as tree. this is the default, bestie, it's already on
  • --xml β€” show as XML
  • --table β€” show Lua table structure
  • --map β€” follow role mapping (xml printer)
  • --xmp β€” include XMP XML (xml printer)
  • --w3c- β€” add - to w3c namespaces to force browser display
heads up: --map, --xmp and --w3c- are all tied to the xml printer, so they're giving side-quest energy unless you're in XML mode.

πŸ‘€ SEE ALSO πŸ‘€


πŸ‘‘ AUTHORS πŸ‘‘

Copyright (C) 2024–2026 The LaTeX Project πŸ’œ


and that's the whole page, bestie β€” brought to you by LaTeX, version dated 2025-01-28, living its SHOW-PDF-TAGS(1) main character era in the General Commands Manual. slay, stay tagged, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from