Debian Codegraph @

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

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