1pdfinfo(1) General Commands Manual pdfinfo(1)
2
3
4
6 pdfinfo - Portable Document Format (PDF) document information extractor
7 (version 3.00)
8
10 pdfinfo [options] [PDF-file]
11
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 page count
31 encrypted flag (yes/no)
32 print and copy permissions (if encrypted)
33 page size
34 file size
35 linearized (yes/no)
36 PDF version
37 metadata (only if requested)
38
40 Pdfinfo reads a configuration file at startup. It first tries to find
41 the user's private config file, ~/.xpdfrc. If that doesn't exist, it
42 looks for a system-wide config file, /etc/xpdf/xpdfrc. See the
43 xpdfrc(5) man page for details.
44
46 Many of the following options can be set with configuration file com‐
47 mands. These are listed in square brackets with the description of the
48 corresponding command line option.
49
50 -f number
51 Specifies the first page to examine. If multiple pages are
52 requested using the "-f" and "-l" options, the size of each
53 requested page (and, optionally, the bounding boxes for each
54 requested page) are printed. Otherwise, only page one is exam‐
55 ined.
56
57 -l number
58 Specifies the last page to examine.
59
60 -box Prints the page box bounding boxes: MediaBox, CropBox, BleedBox,
61 TrimBox, and ArtBox.
62
63 -meta Prints document-level metadata. (This is the "Metadata" stream
64 from the PDF file's Catalog object.)
65
66 -enc encoding-name
67 Sets the encoding to use for text output. The encoding-name
68 must be defined with the unicodeMap command (see xpdfrc(5)).
69 This defaults to "Latin1" (which is a built-in encoding). [con‐
70 fig file: textEncoding]
71
72 -opw password
73 Specify the owner password for the PDF file. Providing this
74 will bypass all security restrictions.
75
76 -upw password
77 Specify the user password for the PDF file.
78
79 -cfg config-file
80 Read config-file in place of ~/.xpdfrc or the system-wide config
81 file.
82
83 -v Print copyright and version information.
84
85 -h Print usage information. (-help and --help are equivalent.)
86
88 The Xpdf tools use the following exit codes:
89
90 0 No error.
91
92 1 Error opening a PDF file.
93
94 2 Error opening an output file.
95
96 3 Error related to PDF permissions.
97
98 99 Other error.
99
101 The pdfinfo software and documentation are copyright 1996-2004 Glyph &
102 Cog, LLC.
103
105 xpdf(1), pdftops(1), pdftotext(1), pdffonts(1), pdftoppm(1), pdfim‐
106 ages(1), xpdfrc(5)
107 http://www.foolabs.com/xpdf/
108
109
110
111 22 January 2004 pdfinfo(1)