Print in landscape mode from the command line

May 22, '03 09:27:00AM

Contributed by: tcurtin

Just a quick one today - for anyone frustrated by the lack of a landscape option in lpr for printing from the command line, take heart! Just use enscript -r. enscript has all kinds of fun options to play with - everything from printing in duplex to changing fonts, printing in columns, and rotating pages. Lots of opportunities for scripting -- please post any good ones you've got! Here's an alias to get you started:

  alias lprint 'enscript -h -r -E -DDuplex:true -fCourier7 -Ppsk7'
Explanations: -h no header page, -r landscape, -E pretty-print (syntax-based font changing -- very slick when used on code, although I occasionally get a parsing error), -f smaller font, -P set the printer.

Enjoy!

Comments (7)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030521103500770