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 If PDF-file is ´-', it reads the PDF file from stdin.
17
18 The ´Info' dictionary contains the following values:
19
20 title
21 subject
22 keywords
23 author
24 creator
25 producer
26 creation date
27 modification date
28
29 In addition, the following information is printed:
30
31 custom metadata (yes/no)
32 metadata stream (yes/no)
33 tagged (yes/no)
34 userproperties (yes/no)
35 suspects (yes/no)
36 form (AcroForm / XFA / none)
37 javascript (yes/no)
38 page count
39 encrypted flag (yes/no)
40 print and copy permissions (if encrypted)
41 page size
42 file size
43 linearized (yes/no)
44 PDF version
45 metadata (only if requested)
46
47 The options -listenc, -meta, -js, -struct, and -struct-text only print
48 the requested information. The 'Info' dictionary and related data
49 listed above is not printed. At most one of these five options may be
50 used.
51
53 -f number
54 Specifies the first page to examine. If multiple pages are re‐
55 quested using the "-f" and "-l" options, the size of each re‐
56 quested page (and, optionally, the bounding boxes for each re‐
57 quested page) are printed. Otherwise, only page one is exam‐
58 ined.
59
60 -l number
61 Specifies the last page to examine.
62
63 -box Prints the page box bounding boxes: MediaBox, CropBox, BleedBox,
64 TrimBox, and ArtBox.
65
66 -meta Prints document-level metadata. (This is the "Metadata" stream
67 from the PDF file's Catalog object.)
68
69 -custom
70 Prints custom and standard metadata.
71
72 -js Prints all JavaScript in the PDF.
73
74 -struct
75 Prints the logical document structure of a Tagged-PDF file.
76
77 -struct-text
78 Print the textual content along with the document structure of a
79 Tagged-PDF file. Note that extracting text this way might be
80 slow for big PDF files. (Implies -struct.)
81
82 -url Print all URLs in the PDF. Only the URL types supported by Pop‐
83 pler are listed. Currently, this is limited to Annotations.
84 Note: only URLs referenced by the PDF objects such as Link Anno‐
85 tations are listed. pdfinfo does not attempt to extract strings
86 matching http://... from the text content.
87
88 -isodates
89 Prints dates in ISO-8601 format (including the time zone).
90
91 -rawdates
92 Prints the raw (undecoded) date strings, directly from the PDF
93 file.
94
95 -dests Print a list of all named destinations. If a page range is spec‐
96 ified using "-f" and "-l", only destinations in the page range
97 are listed.
98
99 -enc encoding-name
100 Sets the encoding to use for text output. This defaults to
101 "UTF-8".
102
103 -listenc
104 Lits the available encodings
105
106 -opw password
107 Specify the owner password for the PDF file. Providing this
108 will bypass all security restrictions.
109
110 -upw password
111 Specify the user password for the PDF file.
112
113 -v Print copyright and version information.
114
115 -h Print usage information. (-help and --help are equivalent.)
116
118 The Xpdf tools use the following exit codes:
119
120 0 No error.
121
122 1 Error opening a PDF file.
123
124 2 Error opening an output file.
125
126 3 Error related to PDF permissions.
127
128 99 Other error.
129
131 The pdfinfo software and documentation are copyright 1996-2011 Glyph &
132 Cog, LLC.
133
135 pdfdetach(1), pdffonts(1), pdfimages(1), pdftocairo(1), pdftohtml(1),
136 pdftoppm(1), pdftops(1), pdftotext(1) pdfseparate(1), pdfsig(1), pdfu‐
137 nite(1)
138
139
140
141 15 August 2011 pdfinfo(1)