xpdf-2.02

Introduction to xpdf

Download location (HTTP):       
Download location (FTP):        ftp://ftp.foolabs.com/pub/xpdf/xpdf-2.02.tar.gz
Version used:                   2.02
Package size:                   472 KB
Estimated Disk space required:  8.2 MB
Estimated build time:           1.05 SBU

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.

xpdf depends on:
xfree86-4.3.0 and lesstif-0.93.36
xpdf will utilize:
Installed fonts: GhostScript-8.00, freetype-2.1.3, t1lib and truetype

Installation of xpdf

Install xpdf by running the following commands:

./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man  \
    --with-freetype2-includes=/usr/include/freetype2 \
    --with-freetype2-library=/usr/lib \
    --with-appdef-dir=/usr/X11R6/lib/X11/app-defaults/ &&
make &&
make install

Installation command explanations

--enable-a4-paper : This switch must be added to set DIN A4 as the standard paper format.

Contents

xpdf displays files in PDF format.

pdftops converts PDF files to Postscript format.

pdftotext parses ASCII text from PDF files.

pdftopbm converts PDF files to PBM (Portable BitMap) format.

Configuring xpdf

In the etc directory you will find a sample xpdfrc that can be either copied to ~/.xpdfrc or taken as example to write your own configuration file.

Example .xpdfrc

# 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/truetype

psFile			"|lpr"
psPaperSize		a4
textEOL		unix

t1libControl		low
freetypeControl		low

urlCommand	"links -g %s"