Prev Up (Under construction)


Xpdf is a viewer for Portable Document Format (PDF) files. It comes with additional conversion utilities: pdfdetach, pdffonts, pdfimages, pdfinfo, pdftoppm, pdftops, pdftotext.

Compilation (V3.03)

Needs FreeType2.

AIX 5.3, 6.1, 7.1

./configure --prefix=/tmp/xpdf-3.03 CC=cc CXX=xlC CFLAGS="-O2 -D_LARGE_FILES" CXXFLAGS=-O2 --with-freetype2-library=/bio/local/lib --with-freetype2-includes=/bio/local/include/freetype2 --with-Xpm-library=/bio/local/lib --with-Xpm-includes=/bio/local/include/ --enable-a4-paper --enable-opi 
# requires ft2build.h to be in /bio/local/include/freetype2/

make clean
make install


xpdf requires the definition of font locations et al., usually by entries in the configuration file, e.g.
fontFile Courier /bio/local/ghostscript-fonts-std-8.11/fonts/n022003l.pfb
fontFile CharterBT-BoldItalic /bio/local/gnu-gs-fonts-other-6.0/fonts/bchbi.pfa
psFile      "|lpr -P"
psPaperSize A4
(use for example grep FontName *.pfb to extract font names).
Unfortunately the location of the configuration file isn't very flexible, it's one of three possibilities:
$HOME/.xpdfrc         # requires every user to make a copy
/usr/local/etc/xpdfrc # system wide, but what if it's disallowed to modify /usr/local?
xpdf -cfg             # use command line option: uncomfortable 
I found an alias definition most versatile, placed within a central startup script, like e.g.:
alias -x xpdf='$COMMONSOFT/bin/xpdf -cfg $COMMONSOFT/etc/xpdfrc'
Dito for the associated utilities.
Last updated: Sat, Apr 5, 2014 10:37:41 AM , M.Kraemer

Impressum Data privacy protection