[32268] | 1 | .\" Copyright 1999-2017 Glyph & Cog, LLC
|
---|
| 2 | .TH pdfinfo 1 "10 Aug 2017"
|
---|
| 3 | .SH NAME
|
---|
| 4 | pdfinfo \- Portable Document Format (PDF) document information
|
---|
| 5 | extractor (version 4.00)
|
---|
| 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 | linearized (yes/no)
|
---|
| 67 | .RE
|
---|
| 68 | .RS
|
---|
| 69 | PDF version
|
---|
| 70 | .RE
|
---|
| 71 | .RS
|
---|
| 72 | metadata (only if requested)
|
---|
| 73 | .RE
|
---|
| 74 | .SH CONFIGURATION FILE
|
---|
| 75 | Pdfinfo reads a configuration file at startup. It first tries to find
|
---|
| 76 | the user's private config file, ~/.xpdfrc. If that doesn't exist, it
|
---|
| 77 | looks for a system-wide config file, typically /usr/local/etc/xpdfrc
|
---|
| 78 | (but this location can be changed when pdfinfo is built). See the
|
---|
| 79 | .BR xpdfrc (5)
|
---|
| 80 | man page for details.
|
---|
| 81 | .SH OPTIONS
|
---|
| 82 | Many of the following options can be set with configuration file
|
---|
| 83 | commands. These are listed in square brackets with the description of
|
---|
| 84 | the corresponding command line option.
|
---|
| 85 | .TP
|
---|
| 86 | .BI \-f " number"
|
---|
| 87 | Specifies the first page to examine. If multiple pages are requested
|
---|
| 88 | using the "\-f" and "\-l" options, the size of each requested page
|
---|
| 89 | (and, optionally, the bounding boxes for each requested page) are
|
---|
| 90 | printed. Otherwise, only page one is examined.
|
---|
| 91 | .TP
|
---|
| 92 | .BI \-l " number"
|
---|
| 93 | Specifies the last page to examine.
|
---|
| 94 | .TP
|
---|
| 95 | .B \-box
|
---|
| 96 | Prints the page box bounding boxes: MediaBox, CropBox, BleedBox,
|
---|
| 97 | TrimBox, and ArtBox.
|
---|
| 98 | .TP
|
---|
| 99 | .B \-meta
|
---|
| 100 | Prints document-level metadata. (This is the "Metadata" stream from
|
---|
| 101 | the PDF file's Catalog object.)
|
---|
| 102 | .TP
|
---|
| 103 | .B \-rawdates
|
---|
| 104 | Prints the raw (undecoded) date strings, directly from the PDF file.
|
---|
| 105 | .TP
|
---|
| 106 | .BI \-enc " encoding-name"
|
---|
| 107 | Sets the encoding to use for text output. The
|
---|
| 108 | .I encoding\-name
|
---|
| 109 | must be defined with the unicodeMap command (see
|
---|
| 110 | .BR xpdfrc (5)).
|
---|
| 111 | This defaults to "Latin1" (which is a built-in encoding).
|
---|
| 112 | .RB "[config file: " textEncoding ]
|
---|
| 113 | .TP
|
---|
| 114 | .BI \-opw " password"
|
---|
| 115 | Specify the owner password for the PDF file. Providing this will
|
---|
| 116 | bypass all security restrictions.
|
---|
| 117 | .TP
|
---|
| 118 | .BI \-upw " password"
|
---|
| 119 | Specify the user password for the PDF file.
|
---|
| 120 | .TP
|
---|
| 121 | .BI \-cfg " config-file"
|
---|
| 122 | Read
|
---|
| 123 | .I config-file
|
---|
| 124 | in place of ~/.xpdfrc or the system-wide config file.
|
---|
| 125 | .TP
|
---|
| 126 | .B \-v
|
---|
| 127 | Print copyright and version information.
|
---|
| 128 | .TP
|
---|
| 129 | .B \-h
|
---|
| 130 | Print usage information.
|
---|
| 131 | .RB ( \-help
|
---|
| 132 | and
|
---|
| 133 | .B \-\-help
|
---|
| 134 | are equivalent.)
|
---|
| 135 | .SH EXIT CODES
|
---|
| 136 | The Xpdf tools use the following exit codes:
|
---|
| 137 | .TP
|
---|
| 138 | 0
|
---|
| 139 | No error.
|
---|
| 140 | .TP
|
---|
| 141 | 1
|
---|
| 142 | Error opening a PDF file.
|
---|
| 143 | .TP
|
---|
| 144 | 2
|
---|
| 145 | Error opening an output file.
|
---|
| 146 | .TP
|
---|
| 147 | 3
|
---|
| 148 | Error related to PDF permissions.
|
---|
| 149 | .TP
|
---|
| 150 | 99
|
---|
| 151 | Other error.
|
---|
| 152 | .SH AUTHOR
|
---|
| 153 | The pdfinfo software and documentation are copyright 1996-2017 Glyph &
|
---|
| 154 | Cog, LLC.
|
---|
| 155 | .SH "SEE ALSO"
|
---|
| 156 | .BR xpdf (1),
|
---|
| 157 | .BR pdftops (1),
|
---|
| 158 | .BR pdftotext (1),
|
---|
| 159 | .BR pdftohtml (1),
|
---|
| 160 | .BR pdffonts (1),
|
---|
| 161 | .BR pdfdetach (1),
|
---|
| 162 | .BR pdftoppm (1),
|
---|
| 163 | .BR pdftopng (1),
|
---|
| 164 | .BR pdfimages (1),
|
---|
| 165 | .BR xpdfrc (5)
|
---|
| 166 | .br
|
---|
| 167 | .B http://www.xpdfreader.com/
|
---|