Debian Codegraph @

libs/xpdf/xpdf-src/doc/pdfinfo.cat

raw
1 pdfinfo(1) General Commands Manual pdfinfo(1)
2
3
4
5 NAME
6 pdfinfo - Portable Document Format (PDF) document information extractor
7 (version 4.06)
8
9 SYNOPSIS
10 pdfinfo [options] [PDF-file]
11
12 DESCRIPTION
13 Pdfinfo prints the contents of the 'Info' dictionary (plus some other
14 useful information) from a Portable Document Format (PDF) file.
15
16 The 'Info' dictionary contains the following values:
17
18 title
19 subject
20 keywords
21 author
22 creator
23 producer
24 creation date
25 modification date
26
27 In addition, the following information is printed:
28
29 tagged (yes/no)
30 form (AcroForm / static XFA / dynamic XFA / none)
31 page count
32 encrypted flag (yes/no)
33 print and copy permissions (if encrypted)
34 page size and rotation
35 file size
36 optimized (aka linearized) (yes/no)
37 uses JavaScript (yes/no)
38 PDF version
39 metadata (only if requested)
40
41 CONFIGURATION FILE
42 Pdfinfo reads a configuration file at startup. It first tries to find
43 the user's private config file, ~/.xpdfrc. If that doesn't exist, it
44 looks for a system-wide config file, typically /etc/xpdfrc (but this
45 location can be changed when pdfinfo is built). See the xpdfrc(5) man
46 page for details.
47
48 OPTIONS
49 Many of the following options can be set with configuration file com-
50 mands. These are listed in square brackets with the description of the
51 corresponding command line option.
52
53 -f number
54 Specifies the first page to examine. If multiple pages are re-
55 quested using the "-f" and "-l" options, the size of each re-
56 quested page (and, optionally, the bounding boxes for each re-
57 quested page) are printed. Otherwise, only page one is exam-
58 ined.
59
60 -l number
61 Specifies the last page to examine.
62
63 -box Prints the page box bounding boxes: MediaBox, CropBox, BleedBox,
64 TrimBox, and ArtBox.
65
66 -meta Prints document-level metadata. (This is the "Metadata" stream
67 from the PDF file's Catalog object.)
68
69 -rawdates
70 Prints the raw (undecoded) date strings, directly from the PDF
71 file.
72
73 -custom
74 Prints any custom (non-standard) entries in the 'Info' dictio-
75 nary.
76
77 -enc encoding-name
78 Sets the encoding to use for text output. The encoding-name
79 must be defined with the unicodeMap command (see xpdfrc(5)).
80 This defaults to "Latin1" (which is a built-in encoding). [con-
81 fig file: textEncoding]
82
83 -opw password
84 Specify the owner password for the PDF file. Providing this
85 will bypass all security restrictions.
86
87 -upw password
88 Specify the user password for the PDF file.
89
90 -cfg config-file
91 Read config-file in place of ~/.xpdfrc or the system-wide config
92 file.
93
94 -v Print copyright and version information.
95
96 -h Print usage information. (-help and --help are equivalent.)
97
98 EXIT CODES
99 The Xpdf tools use the following exit codes:
100
101 0 No error.
102
103 1 Error opening a PDF file.
104
105 2 Error opening an output file.
106
107 3 Error related to PDF permissions.
108
109 98 Out of memory.
110
111 99 Other error.
112
113 AUTHOR
114 The pdfinfo software and documentation are copyright 1996-2025 Glyph &
115 Cog, LLC.
116
117 SEE ALSO
118 xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdffonts(1), pdfde-
119 tach(1), pdftoppm(1), pdftopng(1), pdfimages(1), xpdfrc(5)
120 http://www.xpdfreader.com/
121
122
123
124 14 Nov 2025 pdfinfo(1)