a handy cmd to convert source code to PostScript
-
Require install
enscript. -
Download the
src2psshell script into executable directory. -
Add exeute privilege on
src2ps,chomd +x src2ps. -
Change current source directory
cd /path/to/need/to/combine -
src2ps /tmp/XXX.ps java
-
Add TOC format:
vim
/etc/enscript/enscript.cfguncomment line which contains string
TOCFormatupdate to
TOCFormat: $3v P: $3% L: $4L $-40N