Force always Duplex printing

Helge Blischke h.blischke at srz.de
Tue Mar 1 04:45:47 PST 2005


Anonymous wrote:
> 
> > Anonymous wrote:
> > >
> > > I have a HP Laserjet 4000 and I have configured two postscript printer spools, one for one side printing and the other for two sides printing. I would force to print one or two sides every file sent to the spools.
> > > My problem is that cups doesn't force Duplex printing if it finds this setting in the postscript file, it always do what is in the file.
> > > I don't want the user to set this option from the driver nor from a command line argument.
> > > Do you know this is already possible?
> > > I tried many changes in ppd files and I checked the foomatic-rip debug but I couldn't find out how to do.
> > >
> > > Riccardo
> >
> > Add the following to your printer's PPD:
> > ---snip---
> > *JobPatchFile 1: "% force duplex
> >   <</Duplex true>>setpagedevice
> >   /_orig_setpagedevice /setpagedevice load def
> >   /setpagedevice
> >   {
> >     dup /Duplex undef % trash any duplex setting
> >     dup /Tumble undef % trash any tumble setting
> >     _orig_setpagedevice
> >   }bind def"
> > ---snip---
> > Add this around where the "Device Capabilities" are listed.
> > It will force duplex printing and inhibit any subsequent
> > modification of this key.
> >
> > Helge
> >
> > --
> > Helge Blischke
> > Softwareentwicklung
> > SRZ Berlin | Firmengruppe besscom
> > http://www.srz.de
> > tel: +49 30 75301-360
> Great, thanks, it works!
> Could you tell me the same command to force no Duplex printing?
> Thanks in advance
> 
> Riccardo

Replace the 
	/Duplex true
by
	/Duplex false
that's all.

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360




More information about the cups mailing list