This is Vic.  Jack of all trades
gamer | doofus | engineer | weirdo | lover | fighter | writer | coder | wit | twit | nerd | canadian
General ECF computer usage information. Contains some of the less-known but useful things to do on those Linux boxes.

Printing multiple pages on the Linux boxes.
It's easy to print to multiple pages/per page in the Win2K labs - just set the driver preferences before you print. Doing something similar on the Linux machines involves more typing and less mousework, but it gets the job done. The answer is psnup.

General Syntax
psnup must be invoked from a print command box or the terminal. Generally speaking, your print line will look like this (all on one line, of course).

psnup -d -<#> <filename.ps> |
    lpr -h -P<printer>


Here's an example (all on one line, of course):

psnup -d -2 a2_specification.ps |
    lpr -h -Psf1012


What does it all mean? "-d" indicates drawing a border around each "virtual page." Helps to separate the stuff. The "-2" indicates two "virtual" pages per physical page. Obviously you'll want to set this to nice values like 2, 4, or 8 (wouldn't go any further than that). The remaining two parameters should be fairly obvious.

General Notes
  • The file format must be in postscript format. It is possible to convert a PDF into postscript with xpdf, or acroread (Acrobat Reader) via print to file. The latter is generally better at conversions. I believe Mozilla can also output postscript versions of HTML pages.
  • Don't make the number of "virtual" pages too small or you'll regret it (magnifying glass time). :)

More Information
Read the man (manual) pages. Type man psnup in a terminal window. Don't be intimidated by pure text.



Valid XHTML 1.0! Valid CSS 2.0!
© Copyright 2002-2005 Victor Chow.