ap2s - format files for a postscript printer
$ a2ps --sides=duplex foo.c -o foo.ps
prints two pages on side of the paper on both sides into the file foo.ps
$ a2ps --highlight-level=heavy twisted.py -o twisted.ps
will highlight keywords.
$ a2ps -j ap.txt -o ap.png
will print the text with borders.
Once you are done and are happy with the ps output, send to printer
$ lpr foo.ps
You can see the ps file and quickly know whether you are doing two
side printing. As
it will clearly say how many papers will be involved.
$ gv foo.ps
a2ps is marvelous stuff. It prints C code exceptionally well with
right highlighting, emphasis and
borders.
$ a2ps -1 foo.png -o foo.png
will print 1 page on 1 side of the paper.
It is a bit cryptic but fantastic tool.
Long ago I used this program to create a printout when I went to
Tirunelveli, my native place.
I had created custom headers and the print output was so pretty that
my 80 year old grandfather
was amazed. ;)
-Girish
--
Gayatri Hitech
web: http://gayatri-hitech.com
SpamCheetah Spam filter:
http://spam-cheetah.com