cups ignores options

Helge Blischke h.blischke at acm.org
Wed Nov 4 09:25:24 PST 2009


Christoph Litauer wrote:

> Hi,
> 
> cups-Server: 1.1.23, SuSE SLES
> cups-Client: Mac OS 10.6.1
> 
> On the client I added a cups shared printer via
> ipp://printserver:631/printers/presse. The printserver defines duplex
> printing by default for presse . Sometimes I want to disable duplex
> printing or print colors as grey etc. but my options are ignored on the
> cups server.
> 
> I tracked it down a bit:
> On the cups server I use Helge's pdftops-filter. This filter is called
> with lots of options. The last option is "sides=one-sided". So my Mac
> tells the cups server to print this document simplex ... but pdftops
> seems to ignore the option and the resulting postscript file contains
> 
> /pdfSetup {
>   3 1 roll 2 array astore
>   /setpagedevice where {
>     pop 3 dict begin
>       /PageSize exch def
>       /ImagingBBox null def
>       /Policies 1 dict dup begin /PageSize 3 def end def
>       { /Duplex true def } if
>     currentdict end setpagedevice
>   } {
>     pop pop
>   } ifelse
> } def
> 
> Thus, the document is printed duplex.
> 
> I wonder where this "sides=one-sided" comes from. I can not find these
> strings in the printers ppd file ... any hints?
> 

That statement in braces 
{ /Duplex true def} if
only gets executed if the pdftops utility (called from my filter script) is 
configured to force duplex by the respective statement in the config file.
I guess you have set
psDuplex yes
in the config file. You should set this to no (or delete this statement, as 
no is the default) and configure the default duplexing using the respective 
PPD option so that duplexing is selected by the pstops filter. Then your 
"sides=one-sided" will take effect.

Helge






More information about the cups mailing list