1 .\" Copyright 1999-2007 Glyph & Cog, LLC
2 .TH pdfinfo 1 "27 February 2007"
4 pdfinfo \- Portable Document Format (PDF) document information
5 extractor (version 3.02)
12 prints the contents of the \'Info' dictionary (plus some other useful
13 information) from a Portable Document Format (PDF) file.
15 The \'Info' dictionary contains the following values:
42 In addition, the following information is printed:
51 encrypted flag (yes/no)
54 print and copy permissions (if encrypted)
69 metadata (only if requested)
71 .SH CONFIGURATION FILE
72 Pdfinfo reads a configuration file at startup. It first tries to find
73 the user's private config file, ~/.xpdfrc. If that doesn't exist, it
74 looks for a system-wide config file, typically /usr/local/etc/xpdfrc
75 (but this location can be changed when pdfinfo is built). See the
79 Many of the following options can be set with configuration file
80 commands. These are listed in square brackets with the description of
81 the corresponding command line option.
84 Specifies the first page to examine. If multiple pages are requested
85 using the "-f" and "-l" options, the size of each requested page (and,
86 optionally, the bounding boxes for each requested page) are printed.
87 Otherwise, only page one is examined.
90 Specifies the last page to examine.
93 Prints the page box bounding boxes: MediaBox, CropBox, BleedBox,
97 Prints document-level metadata. (This is the "Metadata" stream from
98 the PDF file's Catalog object.)
100 .BI \-enc " encoding-name"
101 Sets the encoding to use for text output. The
103 must be defined with the unicodeMap command (see
105 This defaults to "Latin1" (which is a built-in encoding).
106 .RB "[config file: " textEncoding ]
108 .BI \-opw " password"
109 Specify the owner password for the PDF file. Providing this will
110 bypass all security restrictions.
112 .BI \-upw " password"
113 Specify the user password for the PDF file.
115 .BI \-cfg " config-file"
118 in place of ~/.xpdfrc or the system-wide config file.
121 Print copyright and version information.
124 Print usage information.
130 The Xpdf tools use the following exit codes:
136 Error opening a PDF file.
139 Error opening an output file.
142 Error related to PDF permissions.
147 The pdfinfo software and documentation are copyright 1996-2007 Glyph &
158 .B http://www.foolabs.com/xpdf/