How to print big files doubleside easily without a proper duplex printer?

Get and install the psutils package. Build the following shell aliases
alias prepare 'psnup -2 \!* two_up.ps; \
psselect -r -o two_up.ps odd_reversed.ps; \
psselect -e two_up.ps even.ps'
The backslashes are the line continuation characters for the shell. You don't need them if you put everything on one line in the shell resource file. Issue the command:
prepare bigfile.ps
To print doubleside, you print the odd pages first and then the even ones. Do it like this:

  1. print odd pages in reverse order (lpr odd_reversed.ps). Let the printer finish and stack the sheets in the output tray, do no shuffle the pages.
  2. Feed the half printed sheets to the input tray, without rotating, turning or shuffling them (just translate them)
  3. If on a network printer, cross your finger now and pray that no one sends another job to the printer :-)
  4. Now print the even pages (lpr even.ps). When the printer finishes, everything is hopefully printed doubleside.
You can name the files first.ps and second.ps, to make it easier

This assumes that you a have printer that stacks face up, like most HP Deskjets, for instance (if not, you'll figure out the right way to turn the pages after a little testing) It also assumes that your printer does not jam easily or feed two sheets at once (use quality paper or wait for the paper to flatten). If you are using a network printer, before printing the second time, open the tray so that printing is stopped and check the queue to make sure you are the first to print. If not, let the other users print first on empty sheets and add your paper later (you don't want your pages meessed up with other people's pages).

If your file is not Postscript, you can use a conversion tool first to convert it to Postscript and then do the above. Another package useful for this and other printed-related jobs is mpage (currently distributed with Red Hat Linux and available on other platforms too). It can do double-sided printed in the manner described above (see the man page of mpage) and also supports duplex printers directly.

Have a Unix Problem
Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.