[cups.general] Re: restrict printer feature

Till Kamppeter till.kamppeter at gmx.net
Sun Aug 28 07:30:43 PDT 2005


Michael Sweet wrote:
> 
> 
> No, that's not the only setting - there will be an option (or there
> usually is, anyways) to control color printing.
> 

And in this option (in most cases "ColorModel") you have to set the
default to bw and then remove (or comment out) all entries for color
printing modes. Example:

Before:
---------------------------------------------------------------------------------
*OpenUI *ColorModel/Print Color as Gray:  PickOne
*OrderDependency: 20 AnySetup *ColorModel
*DefaultColorModel: CMYK
*ColorModel Gray/On: "<</ProcessColorModel /DeviceGray>> setpagedevice"
*ColorModel CMYK/Off: "<</ProcessColorModel /DeviceCMYK>> setpagedevice"
*?ColorModel: "
   save
     currentpagedevice /ProcessColorModel get
         /DeviceGray eq {(Gray)}{(CMYK)}ifelse = flush
   restore
"
*End
*CloseUI: *ColorModel
---------------------------------------------------------------------------------

After:
---------------------------------------------------------------------------------
*OpenUI *ColorModel/Print Color as Gray:  PickOne
*OrderDependency: 20 AnySetup *ColorModel
*DefaultColorModel: Gray
*ColorModel Gray/On: "<</ProcessColorModel /DeviceGray>> setpagedevice"
*%*ColorModel CMYK/Off: "<</ProcessColorModel /DeviceCMYK>> setpagedevice"
*%*?ColorModel: "
*%  save
*%    currentpagedevice /ProcessColorModel get
*%        /DeviceGray eq {(Gray)}{(CMYK)}ifelse = flush
*%  restore
*%"
*%*End
*CloseUI: *ColorModel
---------------------------------------------------------------------------------

Do not remove/comment out the option entirely, as otherwise the
printer-internal default gets used and this is most probably color.

Restart CUPS after editing the PPD file.

Now the users of the bw queue will see only the bw choice in their
ColorModel option, or do not see the option at all, as some GUIs do not
show options with only one choice.

    Till





More information about the cups mailing list