Install a2ps by entering the following commands in the terminal:
sudo apt update sudo apt install 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.