LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Printing 2 pages in 1 page paper in (Redhat) Linux using command line (https://www.linuxquestions.org/questions/linux-general-1/printing-2-pages-in-1-page-paper-in-redhat-linux-using-command-line-409491/)

elmer1503 01-29-2006 10:42 PM

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!

bigrigdriver 01-30-2006 03:47 PM

Is that duplex printing (page 1 on the front; page 2 on the back) or two pages on one side of the paper?

elmer1503 01-31-2006 02:02 AM

its two pages on one side of the paper...

hunter 01-31-2006 08:29 AM

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.

elmer1503 02-01-2006 03:06 AM

thanks a lot Hunter! It worked....

gunnix 02-01-2006 03:13 AM

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.


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