Xpdf is a viewer for Adobe's free Portable Document Format (PDF) which is both fast and small and comes with some useful command-line utilities.
Download (HTTP): http://gd.tuwien.ac.at/publishing/xpdf/xpdf-3.00.tar.gz
Download (FTP): ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00.tar.gz
Download MD5 sum: 95294cef3031dd68e65f331e8750b2c2
Download size: 534 KB
Estimated disk space required: 32 MB
Estimated build time: 0.36 SBU
Required patch: ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl1.patch
Required patch: ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl2.patch
Required patch: ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl3.patch
Required patch: http://www.linuxfromscratch.org/blfs/downloads/6.0/xpdf-3.00pl3-freetype_2.1.7_hack-2.patch
AFPL Ghostscript-8.14 or ESP Ghostscript-7.07.1 (just the fonts), t1lib and libpaper
Install Xpdf by running the following commands:
patch -d xpdf -Np0 -i ../../xpdf-3.00pl1.patch &&
patch -d xpdf -Np0 -i ../../xpdf-3.00pl2.patch &&
patch -d xpdf -Np0 -i ../../xpdf-3.00pl3.patch &&
patch -Np1 -i ../xpdf-3.00pl3-freetype_2.1.7_hack-2.patch &&
./configure --prefix=/usr --sysconfdir=/etc \
--with-freetype2-includes=/usr/include/freetype2 &&
make &&
make install
--enable-a4-paper: This switch must be added to set DIN A4 as the standard paper format.
In the /etc directory you will find a sample xpdfrc that can be either copied to ~/.xpdfrc or taken as an example to write your own configuration file.
# Example .xpdfrc displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb fontDir /usr/X11R6/lib/X11/fonts/TTF psFile "|lpr" psPaperSize letter #psPaperSize A4 textEOL unix enableT1lib yes enableFreeType yes antialias yes urlCommand "links -g %s"
The Xpdf package contains xpdf, pdftops, pdftotext, pdftoppm, pdffonts, pdfimages and pdfinfo.
Last updated on 2005-02-16 21:58:42 -0700