DUMPPDF(1)

πŸ“¦
this version Β· 5 versions
, in epel 10, epel 9, fedora 43, fedora 44

πŸ’– DUMPPDF πŸ’–

okay bestie, listen up β€” this is the dumppdf(1) page from the User Commands section of the manual, and it's genuinely one of the most underrated little tools out there. It does exactly one thing and it does it gorgeously: it pops open a PDF and shows you its insides. ✨


🌸 NAME 🌸

dumppdf β€” extract pdf structure in XML format 🫢

Like. That's it. That's the whole job. No cap.


✨ SYNOPSIS ✨

dumppdf [-h] [--version] [--debug]
[--extract-toc | --extract-embedded EXTRACT_EMBEDDED]
[--page-numbers PAGE_NUMBERS [PAGE_NUMBERS ...]]  [--pagenos PAGENOS]
[--objects OBJECTS] [--all] [--password PASSWORD] [--outfile OUTFILE]
[--raw-stream | --binary-stream | --text-stream] files [files ...]

πŸ¦‹ OPTIONS πŸ¦‹

πŸ’… POSITIONAL ARGUMENTS

  • files β€” one or more paths to PDF files. Give it a whole lil squad of PDFs if you want, it's not gonna complain. πŸ‘‘

🌈 OPTIONAL ARGUMENTS

  • -h, --help β€” shows you a help message and then dips. classic. 😌
  • --version, -v β€” prints the program's version number and exits. main character announcement energy.
  • --debug, -d β€” turns on debug logging level. for when you wanna see everything going on. πŸ‘€
  • --extract-toc, -T β€” extracts the structure of the outline. the table of contents, bestie. the lore. πŸ“–
  • --extract-embedded EXTRACT_EMBEDDED, -E EXTRACT_EMBEDDED β€” extracts embedded files. yes, the little secret files hiding inside your PDF. we're freeing them. πŸ•ŠοΈ

🧚 PARSER

used during PDF parsing β€” this is the part where it's actually reading your file.

  • --page-numbers PAGE_NUMBERS [PAGE_NUMBERS ...] β€” a space-seperated list of page numbers to parse. (spelling is theirs, not mine, don't @ me πŸ’€)
  • --pagenos PAGENOS, -p PAGENOS β€” a comma-separated list of page numbers to parse. It's included for legacy applications; use --page-numbers for more idiomatic argument entry. so like… it still works, but it's giving old money. πŸŽ€
  • --objects OBJECTS, -i OBJECTS β€” comma separated list of object numbers to extract. just the objects you want, nothing extra. we love a curated queen. ✨
  • --all, -a β€” if the structure of all objects should be extracted. yes. all of them. every single one. no crumbs left. πŸ”₯
  • --password PASSWORD, -P PASSWORD β€” the password to use for decrypting PDF file. unlocked. πŸ”“

⭐ OUTPUT

used during output generation β€” this is the part where it hands you the goods.

  • --outfile OUTFILE, -o OUTFILE β€” path to file where output is written. Or - (default) to write to stdout. so if you don't say anything, it just yells into your terminal. respect. πŸ’œ
  • --raw-stream, -r β€” write stream objects without encoding. raw. unfiltered. au naturel.
  • --binary-stream, -b β€” write stream objects with binary encoding.
  • --text-stream, -t β€” write stream objects as plain text. nice, readable, chill. πŸ“
⚠️ heads up bestie β€” --extract-toc and --extract-embedded are on opposite sides of a | in the synopsis, so it's one or the other. same deal with --raw-stream, --binary-stream and --text-stream. pick your fighter. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

  • pdf2txt(1) β€” the sibling. the other one. go say hi. 🫢

and that's the whole page, bestie!! this was the dumppdf(1) manual page from October 2021, filed under User Commands. πŸ’– mwah, go dump some PDFs, you got this. βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ˜­πŸ”₯πŸ‘‘πŸŒˆβ­πŸ’€πŸ™ˆπŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from