This chapter includes applications that create, manipulate or view PostScript files and create or view Portable Document Format PDF files.
a2ps is a filter utilized mainly in the background and primarily by printing scripts to convert almost every input format into PostScript output. The application's name expands appropriately to "all to PostScript".
a2ps cannot convert UTF-8 encoded text to PostScript. The issue is discussed in detail in the Needed Encoding Not a Valid Option section of the Locale Related Issues page. The solution is to use paps-0.6.6, instead of a2ps, for converting UTF-8 encoded text to PostScript.
Download (HTTP): http://ftp.gnu.org/gnu/a2ps/a2ps-4.13b.tar.gz
Download (FTP): ftp://ftp.gnu.org/gnu/a2ps/a2ps-4.13b.tar.gz
Download MD5 sum: 0c8e0c31b08c14f7a7198ce967eb3281
Download size: 1.9 MB
Estimated disk space required: 20.7 MB
Estimated build time: 0.26 SBU
International fonts: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
CUPS-1.2.7 or LPRng-3.8.28 (otherwise, a2ps will use the cat >/dev/lp0 command instead of lpr for sending its output to the printer)
X Window System, PSUtils-p17, teTeX-3.0, AFPL Ghostscript-8.53 or ESP Ghostscript-8.15.2, libpaper, Adobe Reader, and Ghostview
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/A2PS
Install a2ps by running the following commands:
sed -i "s|emacs||" contrib/Makefile.in && sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh && sed -i "s|/usr/local/share|/usr/share|" configure && sed -i "s|char \*malloc ();|/* & */|" \ lib/path-concat.c && ./configure --prefix=/usr \ --sysconfdir=/etc/a2ps --localstatedir=/var \ --enable-shared --with-medium=letter && make
To test the results, issue: make check. The printers.tst test will fail, as there is no default test printer.
Now, as the root user:
make install
Install the downloaded i18n-fonts by running the following commands as the root user:
cp -v fonts/* /usr/share/a2ps/fonts && cp -v afm/* /usr/share/a2ps/afm && cd /usr/share/a2ps/afm && ./make_fonts_map.sh && mv fonts.map.new fonts.map
sed -i -e "s|emacs||" contrib/Makefile.in: This command eliminates the compiling and installing of the Emacs script files. If you have substituted Emacs for Vi as your primary editor, skip this step.
sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh: The make_fonts_map.sh script to uses an option that is invalid with the version of sort installed as part of Coreutils-5.93. If you are using an older version of Coreutils, skip this step.
sed -i -e "s|/usr/local/share|/usr/share|" configure: This command modifies the configure script to search for Ghostscript fonts at the location where they were installed by the BLFS instructions.
sed -i -e "s|char \*malloc ();|/* & */|" lib/path-concat.c: This command fixes a build problem with GCC-3.4.x
--sysconfdir=/etc/a2ps: Configuration data is installed in /etc/a2ps instead of /usr/etc.
--enable-shared: This switch enables building the dynamic liba2ps library.
--with-medium=letter: This switch changes the default paper format of A4 to letter. Installations that utilize A4 would eliminate this switch.
Last updated on 2007-02-14 17:40:25 -0600