1pdfinfo(1) General Commands Manual pdfinfo(1)
2
3
4
6 pdfinfo - Portable Document Format (PDF) document information extractor
7 (version 3.03)
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 form (AcroForm / XFA / none)
31 javascript (yes/no)
32 page count
33 encrypted flag (yes/no)
34 print and copy permissions (if encrypted)
35 page size
36 file size
37 linearized (yes/no)
38 PDF version
39 metadata (only if requested)
40
41 The options -listenc, -meta, -js, -struct, and -struct-text only print
42 the requested information. The 'Info' dictionary and related data
43 listed above is not printed. At most one of these five options may be
44 used.
45
47 -f number
48 Specifies the first page to examine. If multiple pages are
49 requested using the "-f" and "-l" options, the size of each
50 requested page (and, optionally, the bounding boxes for each
51 requested page) are printed. Otherwise, only page one is exam‐
52 ined.
53
54 -l number
55 Specifies the last page to examine.
56
57 -box Prints the page box bounding boxes: MediaBox, CropBox, BleedBox,
58 TrimBox, and ArtBox.
59
60 -meta Prints document-level metadata. (This is the "Metadata" stream
61 from the PDF file's Catalog object.)
62
63 -js Prints all JavaScript in the PDF.
64
65 -struct
66 Prints the logical document structure of a Tagged-PDF file.
67
68 -struct-text
69 Print the textual content along with the document structure of a
70 Tagged-PDF file. Note that extracting text this way might be
71 slow for big PDF files. (Implies -struct.)
72
73 -isodates
74 Prints dates in ISO-8601 format (including the time zone).
75
76 -rawdates
77 Prints the raw (undecoded) date strings, directly from the PDF
78 file.
79
80 -dests Print a list of all named destinations. If a page range is spec‐
81 ified using "-f" and "-l", only destinations in the page range
82 are listed.
83
84 -enc encoding-name
85 Sets the encoding to use for text output. This defaults to
86 "UTF-8".
87
88 -listenc
89 Lits the available encodings
90
91 -opw password
92 Specify the owner password for the PDF file. Providing this
93 will bypass all security restrictions.
94
95 -upw password
96 Specify the user password for the PDF file.
97
98 -v Print copyright and version information.
99
100 -h Print usage information. (-help and --help are equivalent.)
101
103 The Xpdf tools use the following exit codes:
104
105 0 No error.
106
107 1 Error opening a PDF file.
108
109 2 Error opening an output file.
110
111 3 Error related to PDF permissions.
112
113 99 Other error.
114
116 The pdfinfo software and documentation are copyright 1996-2011 Glyph &
117 Cog, LLC.
118
120 pdfdetach(1), pdffonts(1), pdfimages(1), pdftocairo(1), pdftohtml(1),
121 pdftoppm(1), pdftops(1), pdftotext(1) pdfseparate(1), pdfsig(1), pdfu‐
122 nite(1)
123
124
125
126 15 August 2011 pdfinfo(1)