pdfdetach(1)
β¨ NAME β¨
okay bestie, meet pdfdetach(1) π it's a General Commands Manual page, and it's the pdfdetach tool for pulling embedded files (attachments) out of a Portable Document Format (PDF) file. It's version 3.03 and it's giving very organized πβ¨
π§ SYNOPSIS π§
pdfdetach [options] [PDF-file]
π DESCRIPTION π
ngl this one is so simple it's iconic π«Ά pdfdetach either lists the embedded files (attachments) hiding inside a PDF, or extracts them for you. that's it, that's the whole vibe π
π OPTIONS π
Some of these options can also be set with configuration file commands. they're listed in square brackets next to the matching command line option, so keep an eye out for those π
-listβ lowkey the first thing you'll want πΈ it lists every embedded file in the PDF. the file names get converted to the text encoding picked with the-encswitch.-save numberβ saves the embedded file with that number π¦ by default it uses the file name attached to the embedded file (the same one-listshows you). you can rename it with the-oswitch.-savefile filenameβ also saves one embedded file, so it's giving the same energy as-saveπ same default file name rule, and you can change it with-otoo.-saveallβ saves every embedded file at once π it uses the file names from the embedded files (the ones-listprints). by default everything lands in the current directory, but-ocan change that.-o pathβ the file name used when saving with-save, or the directory used by-saveallπ-enc encoding-nameβ sets the encoding for text output (aka the embedded file names) β¨ it defaults to"UTF-8"so you're probably already set π-opw passwordβ the owner password for the PDF π heads up, giving this one bypasses all security restrictions, so use it responsibly bestie π-upw passwordβ the user password for the PDF π-vβ prints copyright and version info π§Ύ-hβ prints usage info π-helpand--helpdo the exact same thing, so pick your fave π«Ά
π¦ EXIT CODES π¦
the Xpdf tools use these exit codes to tell you how things went:
0β no error, we ate π₯1β couldn't open a PDF file π2β couldn't open an output file π3β there's a permissions issue with the PDF π99β some other error, no clue what happened π«
π AUTHOR π
the pdfinfo software and documentation are copyright 1996-2011 Glyph & Cog, LLC. the legends have been around forever π
πΈ SEE ALSO πΈ
pdffonts(1),pdfimages(1),pdfinfo(1),pdftocairo(1),pdftohtml(1),pdftoppm(1),pdftops(1),pdftotext(1)pdfseparate(1),pdfsig(1),pdfunite(1)
okay that's the whole tea, bestie π this page was last updated 15 August 2011, and it's still pdfdetach(1) all the way π§β¨
π¦ where this page comes from
- alpine 3.22: poppler-doc 25.04.0-r0 Β· GPL-2.0-or-later
- alpine 3.23: poppler-doc 25.12.0-r0 Β· GPL-2.0-or-later
- alpine 3.24: poppler-doc 25.12.0-r1 Β· GPL-2.0-or-later
- arch rolling: poppler 26.10.0-2 Β· GPL-2.0-only AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT AND HPND-sell-variant
- centos-stream 10: poppler-utils 24.02.0-10.el10 Β· (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- centos-stream 9: poppler-utils 21.01.0-26.el9 Β· (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT
- debian bookworm: poppler-utils 22.12.0-2+deb12u2 Β· GPL-2.0-only OR GPL-3.0-only
- debian bookworm: poppler-utils 22.12.0-2+deb12u3 Β· GPL-2.0-only OR GPL-3.0-only
- debian trixie: poppler-utils 25.03.0-5+deb13u3 Β· GPL-2.0-only OR GPL-3.0-only
- debian trixie: poppler-utils 25.03.0-5+deb13u4 Β· GPL-2.0-only OR GPL-3.0-only
- fedora 43: poppler-utils 25.07.0-2.fc43 Β· (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- fedora 43: poppler-utils 25.07.0-5.fc43 Β· (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- fedora 44: poppler-utils 26.01.0-3.fc44 Β· (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- nixos 26.05: poppler-utils 26.10.0
- nixpkgs unstable: poppler-utils 26.10.0
- opensuse-leap 16.0: poppler-tools 25.04.0-160000.4.1 Β· GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: poppler-tools 25.04.0-160000.4.1 Β· GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: poppler-tools 25.04.0-160000.4.1 Β· GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: poppler-tools 25.04.0-160000.4.1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu jammy: poppler-utils 22.02.0-2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu jammy: poppler-utils 22.02.0-2ubuntu0.14
- ubuntu jammy: poppler-utils 22.02.0-2ubuntu0.15 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu noble: poppler-utils 24.02.0-1ubuntu9 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu noble: poppler-utils 24.02.0-1ubuntu9.10
- ubuntu noble: poppler-utils 24.02.0-1ubuntu9.11 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: poppler-utils 25.03.0-10
- ubuntu questing: poppler-utils 25.03.0-10ubuntu0.2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu resolute: poppler-utils 26.01.0-2build2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu resolute: poppler-utils 26.01.0-2ubuntu0.2
- ubuntu resolute: poppler-utils 26.01.0-2ubuntu0.3 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: poppler-utils 26.07.0-2ubuntu1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: poppler-utils 26.07.0-2ubuntu1.1 Β· GPL-2.0-only OR GPL-3.0-only
- Copyright 2011 Glyph & Cog, LLC
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms