a2ps

GNU a2ps - 'Anything to PostScript' converter and pretty-printer

Install

All systems
curl cmd.cat/a2ps.sh
Debian Debian
apt-get install a2ps
Ubuntu
apt-get install a2ps
Alpine
apk add a2ps
Arch Arch Linux
pacman -S a2ps
image/svg+xml Kali Linux
apt-get install a2ps
CentOS
yum install a2ps
Fedora
dnf install a2ps
Windows (WSL2)
sudo apt-get update sudo apt-get install a2ps
OS X
brew install a2ps
Raspbian
apt-get install a2ps
Docker
docker run cmd.cat/a2ps a2ps powered by Commando

a2ps

GNU a2ps - 'Anything to PostScript' converter and pretty-printer

GNU a2ps converts files into PostScript for printing or viewing. It uses a nice default format, usually two pages on each physical page, borders surrounding pages, headers with useful information (page number, printing date, file name or supplied header), line numbering, symbol substitution as well as pretty printing for a wide range of programming languages. Historically, a2ps started as a text to PostScript converter, but thanks to powerful delegations it is able to let you use it for any kind of files, ie it can also digest manual pages, dvi files, texinfo, .... Among the other most noticeable features of a2ps are: - various encodings (all the Latins and others), - various fonts (automatic font downloading), - various medias, - various printer interfaces, - various output styles, - various programming languages, - various helping applications, - and various spoken languages.