LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-21-2009, 11:04 AM   #1
Registered: Apr 2007
Posts: 43

Rep: Reputation: 21
printing with lpr


I have been using lpr for a while now I find it much easier to print with (once it is setup) than using kprinter. I am using it with cups.

I do most of my printing with duplex 2 pages per sheet with long edge binding using
lpr -o number-up=2 -o sides=two-sided-long-edge
Recently I have been wanting to print duplex 1 page a sheet with long edge binding, ie normal book binding style and have been trying to use
lpr -o number-up=1 -o sides=two-sided-long-edge
which is printing the second side upside down in relation to the first. If I replace two-sided-long-edge with two-sided-short-edge is prints in exactly the same way.

Does anyone know why this is the case? Is the pdf file itself specifying how it is being printed and overruling lpr or have I got the syntax a bit wrong? The file I am trying to print is a pdf that is cut down to 2 pages using gs.

Old 05-22-2009, 03:13 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 15,899

Rep: Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021
Suggest : See the options in 'kprinter'

Those options are different on different printers,
and are also different depending on the file,
i.e. a 'kprinter' dialog may not show the same
options for e.g. a text, a jpg and a pdf file.

And by the way : lpr is usually just a link to
lpr-cups or similar.
Old 05-22-2009, 12:34 PM   #3
Registered: Apr 2007
Posts: 43

Original Poster
Rep: Reputation: 21
lpoptions shows the options of the printer, for some reason the duplextumble was set in the .cups/lpoptions, so switched that to duplexnotumble and it worked a charm.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
printing last page first with lpr Furlinastis Slackware 3 02-17-2006 05:40 PM
LPR Printing is cut off LazyTux Linux - Newbie 1 10-20-2005 03:40 AM
CUPS and LPR printing carlmarshall Linux - Newbie 2 01-23-2004 02:17 PM
lpr printing working but not everywhere ewinger Linux - Networking 0 06-04-2003 06:02 PM
printing through lpr from php Don Lag Programming 3 06-03-2003 01:15 PM

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration