DUMPPDF(1)
π 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-numbersfor 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-tocand--extract-embeddedare on opposite sides of a|in the synopsis, so it's one or the other. same deal with--raw-stream,--binary-streamand--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
- epel 10: python3-pdfminer 20251230-1.el10_2 Β· MIT AND LicenseRef-Fedora-Public-Domain AND APAFML AND BSD-3-Clause AND (Apache-2.0 AND MIT) AND Adobe-Glyph
- epel 9: python3-pdfminer 20240706-4.el9 Β· MIT AND LicenseRef-Fedora-Public-Domain AND APAFML AND BSD-3-Clause AND (Apache-2.0 AND MIT) AND Adobe-Glyph
- fedora 43: python3-pdfminer 20250506-5.fc43 Β· MIT AND LicenseRef-Fedora-Public-Domain AND APAFML AND BSD-3-Clause AND (Apache-2.0 AND MIT) AND Adobe-Glyph
- fedora 43: python3-pdfminer 20260107-1.fc43 Β· MIT AND LicenseRef-Fedora-Public-Domain AND APAFML AND BSD-3-Clause AND (Apache-2.0 AND MIT) AND Adobe-Glyph
- fedora 44: python3-pdfminer 20260107-2.fc44 Β· MIT AND LicenseRef-Fedora-Public-Domain AND APAFML AND BSD-3-Clause AND (Apache-2.0 AND MIT) AND Adobe-Glyph
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms