a2ps

a2ps 4.15.8

Anything to PostScript converter and pretty-printer

<rendered-html><p>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.</p> </rendered-html>

https://www.gnu.org/software/a2ps/
GNU General Public License v3.0 or later
programs: lp2, pdiff, ogonkify, fixps, card, a2ps, a2ps-lpr-wrapper, composeglyphs
Platforms (46)
aarch64-darwinarmv7a-netbsdm68k-netbsdriscv64-linuxmipsel-netbsdarmv5tel-linuxaarch64-linuxarc-linux
View source on NixOS/nixpkgs →

Install

Copy into your configuration

NixOS (configuration.nix)
environment.systemPackages = with pkgs; [
  a2ps
];
Ad-hoc shell
nix-shell -p a2ps
Flake (nix run)
nix run nixpkgs#a2ps