Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On ubuntu Hardy 8.04, some PDF files have printing issues - they take forever to print, all this while evince (the PDF reader) uses 100% CPU. After that, the actual print comes out very blurry and unreadable.

I usually use pdf2ps to convert them to a postscript file that prints without any issues, but that's not always the case.

In those cases when the ps come garbled, I use lpr to send the pdf directly to the printer - the problem is that I don't know how to set 2 sided printing with lpr.

I print enough PDFs for these edge cases to matter, and having this command line option will also allow me to use a script I once wrote that takes a URL as input and sends it to the printer.

Does anyone here know how to set this 2 sided printing option from the command line? man lpr shows that it has a -o=options flag, but I cannot find the relevant option for this.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

A quick google search for "lpr double sided" found out this page.

 lpr -o sides=two-sided-long-edge foo.ps
share|improve this answer
    
It works! Thank you very much! –  Tzafrir Jul 31 '09 at 10:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.