a2ps の概要

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」.

本パッケージは LFS-8.0 において正しくビルドでき動作することが確認されています。



a2ps は、UTF-8 エンコーディングのテキストを PostScript に変換することはできません。 このことは ロケールに関すること必要なエンコーディングが正常に利用できない にて説明しています。 UTF-8 エンコーディングのテキストを PostScript に変換するには a2ps ではなく paps-0.6.8 を利用します。



a2ps の依存パッケージ



ghostscript-9.21, libpaper-1.1.24+nmu5, texlive-20170524 (or install-tl-unx) X ウィンドウシステム, Adobe Reader, and Ghostview

ユーザー情報: http://wiki.linuxfromscratch.org/blfs/wiki/A2PS

a2ps のインストール

以下のコマンドを実行して a2ps をビルドします。

autoconf &&
sed -i -e "s/GPERF --version |/& head -n 1 |/" \
       -e "s|/usr/local/share|/usr/share|" configure &&

./configure --prefix=/usr  \
    --sysconfdir=/etc/a2ps \
    --enable-shared        \
    --with-medium=letter   &&
make                       &&
touch doc/*.info

To test the results, issue: make check. The printers.tst test will fail, as there is no default test printer. The styles.tst may also fail, as the tests report some inconsistencies between the generated postscript and the reference sets. This is caused by version number differences between the postscript test files and those generated by the tests — these do not affect the operation of the program and can be ignored.

root ユーザーになって以下を実行します。

make install

If desired, install the downloaded i18n-fonts by running the following commands as the root user:

tar -xf ../i18n-fonts-0.1.tar.bz2 &&
cp -v i18n-fonts-0.1/fonts/* /usr/share/a2ps/fonts               &&
cp -v i18n-fonts-0.1/afm/* /usr/share/a2ps/afm                   &&
pushd /usr/share/a2ps/afm    &&
  ./make_fonts_map.sh        &&
  mv fonts.map.new fonts.map &&


autoconf: This command is used to recreate the configure script. This is required because there is an issue in the mktime test which causes the configure script to hang for 60 seconds and then report that there is no working mktime function.

sed -i "s/GPERF --version |/& head -n 1 |/" configure: This fixes a bug in the handling of the version output of gperf.

sed -i "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.

--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 to US letter. It can either be given here or set in /etc/a2ps/a2ps-site.cfg after installation. The default is A4, but there are several other options, in particular: A4dj or letterdj are good settings for HP Deskjet and other printers that need wider paper-handling margins. See /etc/a2ps/a2ps.cfg after installation.

touch doc/*.info: This command avoids trying to regenerate the info files. This is an older package and the current .texi files will produce errors preventing make install from working properly.

a2ps の設定


/etc/a2ps/a2ps.cfg, /etc/a2ps/a2ps-site.cfg


Information about configuring a2ps can be found in the comments contained in the above files, and also by running info a2ps.


インストールプログラム: a2ps, card, composeglyphs, fixnt, fixps, ogonkify, pdiff, psmandup, psset, texi2dvi4a2ps
インストールライブラリ: liba2ps.{so,a}, フィルターデータ
インストールディレクトリ: /etc/a2ps, /usr/share/a2ps



is a filter, utilized primarily by printing scripts, that converts standard input or supported files to PostScript.


prints a reference card of a given program's options.


creates a composite font program.


is supposed to fix the problems in the PostScript files generated by the Microsoft PostScript driver under Windows NT (3.5 and 4.0).


tries to fix common PostScript problems that break postprocessing.


provides international support for Postscript by performing various munging of PostScript files related to printing in different languages.


produces a pretty comparison between files.


tries to produce a version of a given PostScript file to print in manual duplex.


produces a version of a given PostScript file with a protected call to the PostScript operator 'setpagedevice'. Typical use is making a file print duplex, or on the manual tray, etc.


compiles Texinfo and LaTeX files to DVI or PDF

最終更新日: 2017-08-16 03:49:48 +0900