a2ps

Converts text and source code files to PostScript format for printing

brewmacoslinux
Try with needOr install directly
Source

About

Any-to-PostScript filter

Commands

a2pspsselectpsnuppsbook

Examples

Convert a text file to PostScript$ a2ps file.txt -o file.ps
Convert source code with syntax highlighting and print$ a2ps program.py -p -
Convert multiple files and save to PDF via PostScript$ a2ps *.txt -o - | ps2pdf - output.pdf