Revision 36 as of 2007-04-05 16:24:00

Clear message

TableOfContents

Printing with Cups Server ZNCUPS

Network Printers

Overview Cups Printing Options on UNIX

Printing Options are passed to Cups using the -o Option of lp and lpr:

Option

Meaning

Example

Comment

sides=one-sided

disables duplex printing

lpr -o sides=one-sided testpage.ps

use printer/simplex if supported

sides=two-sided-short-edge

enables duplex printing for landcape pages

lpr -o sides=two-sided-short-edge myfile.gif

sides=two-sided-long-edge

enables duplex printing for portrait pages

lpr -o sides=two-sided-long-edge info.txt

default

page-ranges=RANGE

not the complete document is printed, but only the specified pages

lpr -o page-range=1,3-5,7 docu.ps

number-up=number

places multiple document pages on a single printed page

lpr -o number-up=4 project.pdf

supported are: 1, 2, 4, 6, 9, and 16

Resolution=xxx

changes printers resolution

lpr -o Resolution=600dpi testpage.ps

lpoptions can be used to find out supported Resoltions fo a queue:  lpoptions -p queuename -l |grep Resolution 

media=Transparency

prints on transparent Media

lpr -o media=Transarency talk.ps

use printer/transp if supported

PageSize=A3

prints on DIN A3 paper

lpr -o PageSize=A3 picture.gif

use printer/A3 if supported

scaling=number

The scaling value is a number from 1 to 800 specifying the size in relation to the page (not the image.)

lpr -o scaling=100 pict.gif

can be used for image formats (GIF,JPEG,TIFF,...)

landscape

rotate the page 90 degrees to print in landscape orientation

lpr -o landscape picture.jpg

orientation-requested=N

rotates the page depending on the value of N

lpr -o orientation-requested=4 file.ps

possible values: 3: no rotation, 4: 90 degrees, 5: 270 degrees, 6: 180 degrees

For more options and additional information see the [http://localhost:631/sum.html "Cups Software User Manual"] (If there is no Cups daemon running on the local machine, this link won't be available)

Frequently Asked Questions

Why changing the printing system?

Which file formats can Cups process ?

Which applications support cups features on a UNIX System ?

How can I print simplex on a duplex printer on a UNIX system ?

Why there are not an A3 queue and a transparency queue anymore?

How can I remove a printjob on a UNIX system?

How can I change personal printer specific option settings?

How can I print multiple Copies of one Printjob with CLI?

Copies are not collated by default. Use the -o Collate=True option to get collated copies:

How can I change the Layout of the Outputpages when using N-Up printing?

In order to change the borders around each page, use the -o page-border=value option. Supported borders are:

Example: lp -o number-up=4 -o page-border=double myfile

In order to chooses the layout of the pages on each output page, use the -o number-up-layout=value option. Possible values are:

Understanding the layouts: The default layout is lrtb(Left to right, top to bottom). This means: using a number-up of 4, the first page will be printed on the top-left of the outputpage, the second page will be printed on the top-right, the third page will be printed on the bottem-left and the fourth page on the bottom-right of the outputpage.

Example: lp -o number-up=4 -o number-up-layout=btrl myfile

I'm using psutils (pstops,psnup,psbook). Even though I'm using the option ''sides=two-sided-short-edge'' the output was not arranged in the correct order. What can I do?

I'm using psutils (pstops,psnup,psbook). On the Xerox Color Printer I get wrong output with a different font. What can I do?

Printing from Notebooks

Linux Notebooks

using cups

If you used one of the following methods to make your local cups to communicate with the server, you can use cups as described above.

with local cups-daemon

without local cups-daemon

If you have no local cupsd running, just change the Servername directive in /etc/cups/client.conf to zncups.ifh.de

lpr/lp based printing system

Windows Notebooks

Known Problems using Cups