LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-29-2006, 10:42 PM   #1
elmer1503
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Printing 2 pages in 1 page paper in (Redhat) Linux using command line


Hi All,

Would like to know the equivalent linux command line for the unix (HP-unix) command below:

$ lp -o2
- this command prints a 2page file to 1 paper only. I'll need this to save papers when printing.

Appreciate any help here. Thanks!
 
Old 01-30-2006, 03:47 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,766

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Is that duplex printing (page 1 on the front; page 2 on the back) or two pages on one side of the paper?
 
Old 01-31-2006, 02:02 AM   #3
elmer1503
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
its two pages on one side of the paper...
 
Old 01-31-2006, 08:29 AM   #4
hunter
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
The -o number-up option places multiple documents pages on a single printed page. CUPS supports 1,2,4,6,9, and 16-Up formats.

lp -o number-up=X file

Print all 16 pages of file "myfile.txt" on one page:

lp -o number-up=16 myfile.txt

To tell the printer how many pages you want on one page, you can replace the X with 1,2,4,6,9, or 16.
 
Old 02-01-2006, 03:06 AM   #5
elmer1503
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thanks a lot Hunter! It worked....
 
Old 02-01-2006, 03:13 AM   #6
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
Hi, you can also use psnup to do this. Here is a way to make booklets (which is really handy):

Printing booklets with the psutils package:

psbook file.ps file_book.ps = Rearrange the pages into a signature

psnup -2 file_book.ps > file_2up.ps = Put two pages on 1 page in landscape orientation

pstops "2:0(1in,0in)" file_2up.ps > odd.ps = Output the odd pages

pstops "2:-1(1in,0in)" file_2up.ps > even.ps = Output the even pages

Then print the odd pages, when finished turn the pages around and put them again in the printer and print the even pages.

You can also just use gv (instead of pstops) to show a preview of the ps file and then select the odd pages and print them and then the even pages.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apt, Synaptic command line installation...I can't find the page anymore :( leonardh Linux - Software 3 02-03-2005 04:53 PM
command line printing rb3ng Linux - Newbie 3 04-22-2004 12:35 PM
Redhat 9, apache + frontpage not serving pages except admin page JRinOKC Linux - Newbie 5 01-12-2004 02:58 AM
Command line printing? HappyDude Linux - Software 2 10-25-2003 01:00 PM
Printing error from command line nutshell Linux - General 0 03-02-2002 04:39 AM


All times are GMT -5. The time now is 09:50 PM.

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