README-XPDF 15 KB

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