pdfinfo(1)
๐ pdfinfo(1) ๐ General Commands Manual
โจ NAME โจ
okay so pdfinfo is the Portable Document Format (PDF) document information extractor (version 3.03) ๐ it's literally how you dig out info from a PDF ๐
๐ง SYNOPSIS ๐ง
pdfinfo [options] [PDF-file]
๐ DESCRIPTION ๐
Pdfinfo prints the contents of the 'Info' dictionary (plus some other useful info) from a Portable Document Format (PDF) file ๐ฆ
If PDF-file is -, it reads the PDF file from stdin ๐ซถ
The 'Info' dictionary holds these values:
- title
- subject
- keywords
- author
- creator
- producer
- creation date
- modification date
On top of that, it also prints:
- custom metadata (yes/no)
- metadata stream (yes/no)
- tagged (yes/no)
- userproperties (yes/no)
- suspects (yes/no)
- form (AcroForm / XFA / none)
- javascript (yes/no)
- page count
- encrypted flag (yes/no)
- print and copy permissions (if encrypted)
- page size
- file size
- linearized (yes/no)
- PDF version
- metadata (only if requested)
โ ๏ธ The options-listenc,-meta,-js,-struct, and-struct-textonly print the one thing you asked for. The 'Info' dictionary and related data above will NOT show up. You can use at most one of these five options at a time ๐
๐ธ OPTIONS ๐ธ
-f numberโ picks the first page to examine ๐ If you ask for a range with-fand-l, it prints the size of each page you asked for (and optionally the bounding boxes for each one). Otherwise, only page one gets checked.-l numberโ picks the last page to examine โจ-boxโ prints the page box bounding boxes: MediaBox, CropBox, BleedBox, TrimBox, and ArtBox ๐ฆ-metaโ prints document-level metadata. This is the "Metadata" stream from the PDF file's Catalog object ๐-customโ prints custom and standard metadata ๐-jsโ prints all JavaScript in the PDF ๐ฅ-structโ prints the logical document structure of a Tagged-PDF file ๐-struct-textโ prints the textual content along with the document structure of a Tagged-PDF file. Heads up, extracting text this way might be slow for big PDF files ๐ข (Implies-struct.)-urlโ prints all URLs in the PDF ๐ฆ Only the URL types supported by Poppler get listed, and right now that's limited to Annotations. Also, it only catches URLs referenced by PDF objects like Link Annotations. pdfinfo does NOT go hunting for strings that look likehttp://...in the text content, so don't expect that ๐ โโ๏ธ-isodatesโ prints dates in ISO-8601 format (including the time zone) ๐๏ธ-rawdatesโ prints the raw, undecoded date strings, straight from the PDF file ๐ง-destsโ prints a list of all named destinations. If you set a page range with-fand-l, only the destinations in that range show up ๐-enc encoding-nameโ sets the encoding used for text output. It defaults to"UTF-8"๐-listencโ lists the available encodings ๐-opw passwordโ gives the owner password for the PDF file.
๐ Providing this bypasses ALL security restrictions, so use it wisely, bestie.
-upw passwordโ gives the user password for the PDF file ๐-vโ prints copyright and version info ๐-hโ prints usage info. (-helpand--helpare the same thing ๐)
๐ฆ EXIT CODES ๐ฆ
The Xpdf tools use these exit codes:
0โ no error, we slay ๐1โ error opening a PDF file ๐2โ error opening an output file ๐3โ error related to PDF permissions ๐99โ some other error ๐
๐ AUTHOR ๐
The pdfinfo software and documentation are copyright 1996-2011 Glyph & Cog, LLC ๐ซถ
๐ SEE ALSO ๐
pdfdetach(1), pdffonts(1), pdfimages(1), pdftocairo(1), pdftohtml(1), pdftoppm(1), pdftops(1), pdftotext(1), pdfseparate(1), pdfsig(1), pdfunite(1) ๐ฆ
Okay bestie, that's the whole pdfinfo(1) tea โ It was last updated 15 August 2011, and it's pdfinfo(1) forever ๐โจ
๐ฆ 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
- 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 1999-2011 Glyph & Cog, LLC
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms