1 |
|
---|
2 | Xpdf
|
---|
3 | ====
|
---|
4 |
|
---|
5 | version 4.00
|
---|
6 | 2017-aug-10
|
---|
7 |
|
---|
8 | The Xpdf software and documentation are
|
---|
9 | copyright 1996-2017 Glyph & Cog, LLC.
|
---|
10 |
|
---|
11 | Email: [email protected]
|
---|
12 | WWW: http://www.xpdfreader.com/
|
---|
13 |
|
---|
14 | The PDF data structures, operators, and specification are
|
---|
15 | documented in ISO 32000-1:2008.
|
---|
16 |
|
---|
17 |
|
---|
18 | What is Xpdf?
|
---|
19 | -------------
|
---|
20 |
|
---|
21 | Xpdf is an open source viewer for Portable Document Format (PDF)
|
---|
22 | files. (These are also sometimes also called 'Acrobat' files, from
|
---|
23 | the name of Adobe's PDF software.) The Xpdf project also includes a
|
---|
24 | PDF text extractor, PDF-to-PostScript converter, and various other
|
---|
25 | utilities.
|
---|
26 |
|
---|
27 | The Xpdf viewer uses the Qt cross-platform GUI toolkit. The other
|
---|
28 | command line utilties do not require Qt.
|
---|
29 |
|
---|
30 |
|
---|
31 | License & Distribution
|
---|
32 | ----------------------
|
---|
33 |
|
---|
34 | Xpdf is licensed under the GNU General Public License (GPL), version 2
|
---|
35 | or 3. This means that you can distribute derivatives of Xpdf under
|
---|
36 | any of the following:
|
---|
37 | - GPL v2 only
|
---|
38 | - GPL v3 only
|
---|
39 | - GPL v2 or v3
|
---|
40 |
|
---|
41 | The Xpdf source package includes the text of both GPL versions:
|
---|
42 | COPYING for GPL v2, COPYING3 for GPL v3.
|
---|
43 |
|
---|
44 | Please note that Xpdf is NOT licensed under "any later version" of the
|
---|
45 | GPL, as I have no idea what those versions will look like.
|
---|
46 |
|
---|
47 | If you are redistributing unmodified copies of Xpdf (or any of the
|
---|
48 | Xpdf tools) in binary form, you need to include all of the
|
---|
49 | documentation: README, man pages (or help files), COPYING, and
|
---|
50 | COPYING3.
|
---|
51 |
|
---|
52 | If you want to incorporate the Xpdf source code into another program
|
---|
53 | (or create a modified version of Xpdf), and you are distributing that
|
---|
54 | program, you have two options: release your program under the GPL (v2
|
---|
55 | and/or v3), or purchase a commercial Xpdf source license.
|
---|
56 |
|
---|
57 | If you're interested in commercial licensing, please see the Glyph &
|
---|
58 | Cog web site:
|
---|
59 |
|
---|
60 | http://www.glyphandcog.com/
|
---|
61 |
|
---|
62 |
|
---|
63 | Compatibility
|
---|
64 | -------------
|
---|
65 |
|
---|
66 | Xpdf uses the Qt toolkit and runs on Linux, Windows, and OS X -- and
|
---|
67 | probably other systems that have a Qt port.
|
---|
68 |
|
---|
69 | The non-GUI command line utilities (pdftops, pdftotext, pdftohtml,
|
---|
70 | pdfinfo, pdffonts, pdfdetach, pdftoppm, pdftopng, and pdfimages) run
|
---|
71 | on Linux, Windows, and OS X -- and should run on pretty much any
|
---|
72 | system with a decent C++ compiler.
|
---|
73 |
|
---|
74 | If you compile Xpdf for a system not listed on the web page, please
|
---|
75 | let me know. If you're willing to make your binary available by ftp
|
---|
76 | or on the web, I'll be happy to add a link from the Xpdf web page. I
|
---|
77 | have decided not to host any binaries I didn't compile myself (for
|
---|
78 | disk space and support reasons).
|
---|
79 |
|
---|
80 | If you can't get Xpdf to compile on your system, send me email and
|
---|
81 | I'll try to help.
|
---|
82 |
|
---|
83 |
|
---|
84 | Getting Xpdf
|
---|
85 | ------------
|
---|
86 |
|
---|
87 | The latest version is available from:
|
---|
88 |
|
---|
89 | http://www.xpdfreader.com/
|
---|
90 |
|
---|
91 | Source code and several precompiled executables are available.
|
---|
92 |
|
---|
93 | Announcements of new versions are posted to comp.text.pdf and emailed
|
---|
94 | to a list of people. If you'd like to receive email notification of
|
---|
95 | new versions, just let me know.
|
---|
96 |
|
---|
97 |
|
---|
98 | Running Xpdf
|
---|
99 | ------------
|
---|
100 |
|
---|
101 | To run xpdf, simply type:
|
---|
102 |
|
---|
103 | xpdf file.pdf
|
---|
104 |
|
---|
105 | To generate a PostScript file, run pdftops:
|
---|
106 |
|
---|
107 | pdftops file.pdf
|
---|
108 |
|
---|
109 | To generate a plain text file, run pdftotext:
|
---|
110 |
|
---|
111 | pdftotext file.pdf
|
---|
112 |
|
---|
113 | There are several additional utilities (which are fully described in
|
---|
114 | their man pages):
|
---|
115 |
|
---|
116 | pdftohtml -- converts a PDF file to HTML
|
---|
117 | pdfinfo -- dumps a PDF file's Info dictionary (plus some other
|
---|
118 | useful information)
|
---|
119 | pdffonts -- lists the fonts used in a PDF file along with various
|
---|
120 | information for each font
|
---|
121 | pdfdetach -- lists or extracts embedded files (attachments) from a
|
---|
122 | PDF file
|
---|
123 | pdftoppm -- converts a PDF file to a series of PPM/PGM/PBM-format
|
---|
124 | bitmaps
|
---|
125 | pdftopng -- converts a PDF file to a series of PNG image files
|
---|
126 | pdfimages -- extracts the images from a PDF file
|
---|
127 |
|
---|
128 | Command line options and many other details are described in the man
|
---|
129 | pages: xpdf(1), etc.
|
---|
130 |
|
---|
131 | All of these utilities read an optional configuration file: see the
|
---|
132 | xpdfrc(5) man page.
|
---|
133 |
|
---|
134 |
|
---|
135 | Compiling Xpdf
|
---|
136 | --------------
|
---|
137 |
|
---|
138 | See the separate file, INSTALL.
|
---|
139 |
|
---|
140 |
|
---|
141 | Bugs
|
---|
142 | ----
|
---|
143 |
|
---|
144 | If you find a bug in Xpdf, i.e., if it prints an error message,
|
---|
145 | crashes, or incorrectly displays a document, and you don't see that
|
---|
146 | bug listed here, please send me email, with a pointer (URL, ftp site,
|
---|
147 | etc.) to the PDF file.
|
---|
148 |
|
---|
149 |
|
---|
150 | Third-Party Libraries
|
---|
151 | ---------------------
|
---|
152 |
|
---|
153 | Xpdf uses the following libraries:
|
---|
154 | * FreeType [http://www.freetype.org/]
|
---|
155 | * libpng [http://www.libpng.com/pub/png/libpng.html] (used by pdftohtml
|
---|
156 | and pdftopng)
|
---|
157 | * zlib [http://zlib.net/] (used by pdftohtml)
|
---|
158 |
|
---|
159 |
|
---|
160 | Acknowledgments
|
---|
161 | ---------------
|
---|
162 |
|
---|
163 | Thanks to:
|
---|
164 |
|
---|
165 | * Patrick Voigt for help with the remote server code.
|
---|
166 | * Patrick Moreau, Martin P.J. Zinser, and David Mathog for the VMS
|
---|
167 | port.
|
---|
168 | * David Boldt and Rick Rodgers for sample man pages.
|
---|
169 | * Brendan Miller for the icon idea.
|
---|
170 | * Olly Betts for help testing pdftotext.
|
---|
171 | * Peter Ganten for the OS/2 port.
|
---|
172 | * Michael Richmond for the Win32 port of pdftops and pdftotext and the
|
---|
173 | xpdf/cygwin/XFree86 build instructions.
|
---|
174 | * Frank M. Siegert for improvements in the PostScript code.
|
---|
175 | * Leo Smiers for the decryption patches.
|
---|
176 | * Rainer Menzner for creating t1lib, and for helping me adapt it to
|
---|
177 | xpdf.
|
---|
178 | * Pine Tree Systems A/S for funding the OPI and EPS support in
|
---|
179 | pdftops.
|
---|
180 | * Easy Software Products for funding several improvements to the
|
---|
181 | PostScript output code.
|
---|
182 | * Tom Kacvinsky for help with FreeType and for being my interface to
|
---|
183 | the FreeType team.
|
---|
184 | * Theppitak Karoonboonyanan for help with Thai support.
|
---|
185 | * Leonard Rosenthol for help and contributions on a bunch of things.
|
---|
186 | * Alexandros Diamantidis and Maria Adaloglou for help with Greek
|
---|
187 | support.
|
---|
188 | * Lawrence Lai for help with the CJK Unicode maps.
|
---|
189 |
|
---|
190 | Various people have contributed modifications made for use by the
|
---|
191 | pdftex project:
|
---|
192 |
|
---|
193 | * Han The Thanh
|
---|
194 | * Martin Schröder of ArtCom GmbH
|
---|
195 |
|
---|
196 |
|
---|
197 | References
|
---|
198 | ----------
|
---|
199 |
|
---|
200 | Adobe Systems Inc., ISO 32000-1:2008, Document Management - Portable
|
---|
201 | document format - Part 1: PDF 1.7.
|
---|
202 | http://www.adobe.com/devnet/pdf/pdf_reference.html
|
---|
203 | [The manual for PDF version 1.7.]
|
---|
204 |
|
---|
205 | Adobe Systems Inc., Adobe Supplement to the ISO 32000, BaseVersion
|
---|
206 | 1.7, ExtensionLevel 3, June 2008.
|
---|
207 | http://www.adobe.com/devnet/pdf/pdf_reference.html
|
---|
208 | [Additions to the PDF 1.7 spec.]
|
---|
209 |
|
---|
210 | Adobe Systems Inc., Adobe Supplement to ISO 32000-1, BaseVersion 1.7,
|
---|
211 | ExtensionLevel 5, June 2009.
|
---|
212 | http://www.adobe.com/devnet/pdf/pdf_reference.html
|
---|
213 | [Additions to the PDF 1.7 spec.]
|
---|
214 |
|
---|
215 | Adobe Systems Inc., _PostScript Language Reference_, 3rd ed.
|
---|
216 | Addison-Wesley, 1999, ISBN 0-201-37922-8.
|
---|
217 | [The official PostScript manual.]
|
---|
218 |
|
---|
219 | Adobe Systems, Inc., _The Type 42 Font Format Specification_,
|
---|
220 | Adobe Developer Support Technical Specification #5012. 1998.
|
---|
221 | http://partners.adobe.com/asn/developer/pdfs/tn/5012.Type42_Spec.pdf
|
---|
222 | [Type 42 is the format used to embed TrueType fonts in PostScript
|
---|
223 | files.]
|
---|
224 |
|
---|
225 | Adobe Systems, Inc., _Adobe CMap and CIDFont Files Specification_,
|
---|
226 | Adobe Developer Support Technical Specification #5014. 1995.
|
---|
227 | http://www.adobe.com/supportservice/devrelations/PDFS/TN/5014.CIDFont_Spec.pdf
|
---|
228 | [CMap file format needed for Japanese and Chinese font support.]
|
---|
229 |
|
---|
230 | Adobe Systems, Inc., _Adobe-Japan1-4 Character Collection for
|
---|
231 | CID-Keyed Fonts_, Adobe Developer Support Technical Note #5078.
|
---|
232 | 2000.
|
---|
233 | http://partners.adobe.com/asn/developer/PDFS/TN/5078.CID_Glyph.pdf
|
---|
234 | [The Adobe Japanese character set.]
|
---|
235 |
|
---|
236 | Adobe Systems, Inc., _Adobe-GB1-4 Character Collection for
|
---|
237 | CID-Keyed Fonts_, Adobe Developer Support Technical Note #5079.
|
---|
238 | 2000.
|
---|
239 | http://partners.adobe.com/asn/developer/pdfs/tn/5079.Adobe-GB1-4.pdf
|
---|
240 | [The Adobe Chinese GB (simplified) character set.]
|
---|
241 |
|
---|
242 | Adobe Systems, Inc., _Adobe-CNS1-3 Character Collection for
|
---|
243 | CID-Keyed Fonts_, Adobe Developer Support Technical Note #5080.
|
---|
244 | 2000.
|
---|
245 | http://partners.adobe.com/asn/developer/PDFS/TN/5080.CNS_CharColl.pdf
|
---|
246 | [The Adobe Chinese CNS (traditional) character set.]
|
---|
247 |
|
---|
248 | Adobe Systems Inc., _Supporting the DCT Filters in PostScript Level
|
---|
249 | 2_, Adobe Developer Support Technical Note #5116. 1992.
|
---|
250 | http://www.adobe.com/supportservice/devrelations/PDFS/TN/5116.PS2_DCT.PDF
|
---|
251 | [Description of the DCTDecode filter parameters.]
|
---|
252 |
|
---|
253 | Adobe Systems Inc., _Open Prepress Interface (OPI) Specification -
|
---|
254 | Version 2.0_, Adobe Developer Support Technical Note #5660. 2000.
|
---|
255 | http://partners.adobe.com/asn/developer/PDFS/TN/5660.OPI_2.0.pdf
|
---|
256 |
|
---|
257 | Adobe Systems Inc., CMap files.
|
---|
258 | ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/
|
---|
259 | [The actual CMap files for the 16-bit CJK encodings.]
|
---|
260 |
|
---|
261 | Adobe Systems Inc., Unicode glyph lists.
|
---|
262 | http://partners.adobe.com/asn/developer/type/unicodegn.html
|
---|
263 | http://partners.adobe.com/asn/developer/type/glyphlist.txt
|
---|
264 | http://partners.adobe.com/asn/developer/type/corporateuse.txt
|
---|
265 | http://partners.adobe.com/asn/developer/type/zapfdingbats.txt
|
---|
266 | [Mappings between character names to Unicode.]
|
---|
267 |
|
---|
268 | Adobe Systems Inc., OpenType Specification v. 1.4.
|
---|
269 | http://partners.adobe.com/public/developer/opentype/index_spec.html
|
---|
270 | [The OpenType font format spec.]
|
---|
271 |
|
---|
272 | Aldus Corp., _OPI: Open Prepress Interface Specification 1.3_. 1993.
|
---|
273 | http://partners.adobe.com/asn/developer/PDFS/TN/OPI_13.pdf
|
---|
274 |
|
---|
275 | Anonymous, RC4 source code.
|
---|
276 | ftp://ftp.ox.ac.uk/pub/crypto/misc/rc4.tar.gz
|
---|
277 | ftp://idea.sec.dsi.unimi.it/pub/crypt/code/rc4.tar.gz
|
---|
278 | [This is the algorithm used to encrypt PDF files.]
|
---|
279 |
|
---|
280 | T. Boutell, et al., "PNG (Portable Network Graphics) Specification,
|
---|
281 | Version 1.0". RFC 2083.
|
---|
282 | [PDF uses the PNG filter algorithms.]
|
---|
283 |
|
---|
284 | CCITT, "Information Technology - Digital Compression and Coding of
|
---|
285 | Continuous-tone Still Images - Requirements and Guidelines", CCITT
|
---|
286 | Recommendation T.81.
|
---|
287 | http://www.w3.org/Graphics/JPEG/
|
---|
288 | [The official JPEG spec.]
|
---|
289 |
|
---|
290 | A. Chernov, "Registration of a Cyrillic Character Set". RFC 1489.
|
---|
291 | [Documentation for the KOI8-R Cyrillic encoding.]
|
---|
292 |
|
---|
293 | Roman Czyborra, "The ISO 8859 Alphabet Soup".
|
---|
294 | http://czyborra.com/charsets/iso8859.html
|
---|
295 | [Documentation on the various ISO 859 encodings.]
|
---|
296 |
|
---|
297 | L. Peter Deutsch, "ZLIB Compressed Data Format Specification version
|
---|
298 | 3.3". RFC 1950.
|
---|
299 | [Information on the general format used in FlateDecode streams.]
|
---|
300 |
|
---|
301 | L. Peter Deutsch, "DEFLATE Compressed Data Format Specification
|
---|
302 | version 1.3". RFC 1951.
|
---|
303 | [The definition of the compression algorithm used in FlateDecode
|
---|
304 | streams.]
|
---|
305 |
|
---|
306 | Morris Dworkin, "Recommendation for Block Cipher Modes of Operation",
|
---|
307 | National Institute of Standards, NIST Special Publication 800-38A,
|
---|
308 | 2001.
|
---|
309 | [The cipher block chaining (CBC) mode used with AES in PDF files.]
|
---|
310 |
|
---|
311 | Federal Information Processing Standards Publication 197 (FIPS PUBS
|
---|
312 | 197), "Advanced Encryption Standard (AES)", November 26, 2001.
|
---|
313 | [AES encryption, used in PDF 1.6.]
|
---|
314 |
|
---|
315 | Jim Flowers, "X Logical Font Description Conventions", Version 1.5, X
|
---|
316 | Consortium Standard, X Version 11, Release 6.1.
|
---|
317 | ftp://ftp.x.org/pub/R6.1/xc/doc/hardcopy/XLFD/xlfd.PS.Z
|
---|
318 | [The official specification of X font descriptors, including font
|
---|
319 | transformation matrices.]
|
---|
320 |
|
---|
321 | Foley, van Dam, Feiner, and Hughes, _Computer Graphics: Principles and
|
---|
322 | Practice_, 2nd ed. Addison-Wesley, 1990, ISBN 0-201-12110-7.
|
---|
323 | [Colorspace conversion functions, Bezier spline math.]
|
---|
324 |
|
---|
325 | Robert L. Hummel, _Programmer's Technical Reference: Data and Fax
|
---|
326 | Communications_. Ziff-Davis Press, 1993, ISBN 1-56276-077-7.
|
---|
327 | [CCITT Group 3 and 4 fax decoding.]
|
---|
328 |
|
---|
329 | ISO/IEC, _Information technology -- Lossy/lossless coding of bi-level
|
---|
330 | images_. ISO/IEC 14492, First edition (2001-12-15).
|
---|
331 | http://webstore.ansi.org/
|
---|
332 | [The official JBIG2 standard. The final draft of this spec is
|
---|
333 | available from http://www.jpeg.org/jbighomepage.html.]
|
---|
334 |
|
---|
335 | ISO/IEC, _Information technology -- JPEG 2000 image coding system --
|
---|
336 | Part 1: Core coding system_. ISO/IEC 15444-1, First edition
|
---|
337 | (2000-12-15).
|
---|
338 | http://webstore.ansi.org/
|
---|
339 | [The official JPEG 2000 standard. The final committee draft of this
|
---|
340 | spec is available from http://www.jpeg.org/JPEG2000.html, but there
|
---|
341 | were changes made to the bitstream format between that draft and the
|
---|
342 | published spec.]
|
---|
343 |
|
---|
344 | ITU, "Standardization of Group 3 facsimile terminals for document
|
---|
345 | transmission", ITU-T Recommendation T.4, 1999.
|
---|
346 | ITU, "Facsimile coding schemes and coding control functions for Group 4
|
---|
347 | facsimile apparatus", ITU-T Recommendation T.6, 1993.
|
---|
348 | http://www.itu.int/
|
---|
349 | [The official Group 3 and 4 fax standards - used by the CCITTFaxDecode
|
---|
350 | stream, as well as the JBIG2Decode stream.]
|
---|
351 |
|
---|
352 | B. Kaliski, "PKCS #5: Password-Based Cryptography Specification,
|
---|
353 | Version 2.0". RFC 2898.
|
---|
354 | [Defines the padding scheme used with AES encryption in PDF files.]
|
---|
355 |
|
---|
356 | Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz, "Practical
|
---|
357 | Fast 1-D DCT Algorithms with 11 Multiplications". IEEE Intl. Conf. on
|
---|
358 | Acoustics, Speech & Signal Processing, 1989, 988-991.
|
---|
359 | [The fast IDCT algorithm used in the DCTDecode filter.]
|
---|
360 |
|
---|
361 | Microsoft, _TrueType 1.0 Font Files_, rev. 1.66. 1995.
|
---|
362 | http://www.microsoft.com/typography/tt/tt.htm
|
---|
363 | [The TrueType font spec (in MS Word format, naturally).]
|
---|
364 |
|
---|
365 | V. Ostromoukhov, R.D. Hersch, "Stochastic Clustered-Dot Dithering",
|
---|
366 | Conf. Color Imaging: Device-Independent Color, Color Hardcopy, and
|
---|
367 | Graphic Arts IV, 1999, SPIE Vol. 3648, 496-505.
|
---|
368 | http://diwww.epfl.ch/w3lsp/publications/colour/scd.html
|
---|
369 | [The stochastic dithering algorithm used in Xpdf.]
|
---|
370 |
|
---|
371 | P. Peterlin, "ISO 8859-2 (Latin 2) Resources".
|
---|
372 | http://sizif.mf.uni-lj.si/linux/cee/iso8859-2.html
|
---|
373 | [This is a web page with all sorts of useful Latin-2 character set and
|
---|
374 | font information.]
|
---|
375 |
|
---|
376 | Charles Poynton, "Color FAQ".
|
---|
377 | http://www.inforamp.net/~poynton/ColorFAQ.html
|
---|
378 | [The mapping from the CIE 1931 (XYZ) color space to RGB.]
|
---|
379 |
|
---|
380 | R. Rivest, "The MD5 Message-Digest Algorithm". RFC 1321.
|
---|
381 | [MD5 is used in PDF document encryption.]
|
---|
382 |
|
---|
383 | Thai Industrial Standard, "Standard for Thai Character Codes for
|
---|
384 | Computers", TIS-620-2533 (1990).
|
---|
385 | http://www.nectec.or.th/it-standards/std620/std620.htm
|
---|
386 | [The TIS-620 Thai encoding.]
|
---|
387 |
|
---|
388 | Unicode Consortium, "Unicode Home Page".
|
---|
389 | http://www.unicode.org/
|
---|
390 | [Online copy of the Unicode spec.]
|
---|
391 |
|
---|
392 | W3C Recommendation, "PNG (Portable Network Graphics) Specification
|
---|
393 | Version 1.0".
|
---|
394 | http://www.w3.org/Graphics/PNG/
|
---|
395 | [Defines the PNG image predictor.]
|
---|
396 |
|
---|
397 | Gregory K. Wallace, "The JPEG Still Picture Compression Standard".
|
---|
398 | ftp://ftp.uu.net/graphics/jpeg/wallace.ps.gz
|
---|
399 | [Good description of the JPEG standard. Also published in CACM, April
|
---|
400 | 1991, and submitted to IEEE Transactions on Consumer Electronics.]
|
---|
401 |
|
---|
402 | F. Yergeau, "UTF-8, a transformation format of ISO 10646". RFC 2279.
|
---|
403 | [A commonly used Unicode encoding.]
|
---|