[cups.general] Create color / black and white queues from color printer

Helge Blischke h.blischke at acm.org
Mon Oct 17 10:23:16 PDT 2011


Daniel J. Soto wrote:

> Hi,
> 
> thank for your reply again.
> 
> I've tried your solution and still get the job in color!
> 
> Really I begin to be a bit desperate :-(
> 
> I my opinion, the changes I do in the ppd file don't take effect in
> CUPS... I don't understand the reason but it seems to be so...
> 
> It is possible that another driver is been used? Another generic driver
> (foomatic?)?
> 
> My PDF.ppd, for your recomended options, is.
> 
> [...]
> *ColorDevice: False
> *DefaultColorSpace: Gray
> *JobPatchFile 1:"<</ProcessColorModel /DeviceGray>>setpagedevice"
> [...]
> 
> Note that I restart CUPS after change the ppd file.
> 
> ¿Another idea?
> 
> Thanks in advance!
> Daniel.
> 
> 2011/10/17 Helge Blischke <h.blischke at acm.org>
> 
>> Daniel J. Soto wrote:
>>
>> > Hi,
>> >
>> > thanks for your reply.
>> >
>> > I have tried your option but my PDF printer (I'm using this for test)
>> > still print in color... It is like CUPS doesn't use the ppd files...
>> > it's possible?
>> >
>> > In the other hand, how I can change the appropiate value with a command
>> > line? lpoption?
>> >
>> > Thanks in advance,
>> > Daniel.
>> >
>> > 2011/10/17 Helge Blischke <h.blischke at acm.org>
>> >
>> >> Daniel J. Soto wrote:
>> >>
>> >> > Hello all,
>> >> >
>> >> > it is possible that another people have been asked the same question
>> >> > but I'm googling from last ten days and I have not found anything
>> about
>> >> > this that I can use...
>> >> >
>> >> > I'm looking for a way to create two queues from the same color
>> printer,
>> >> > one for printing in color and one for printing in black and white
>> >> > (or grayscale). I've tryed to modify the ppd file manually setting
>> >> > de attribute ColorDevice to false but it doesn't work. My objetive
>> >> > is to do this internally from my (php) program but I'm trying to do
>> >> > manually
>> >> before
>> >> > for understanding the process... It's seems CUPS doesn't read the
>> >> > ppd
>> >> file
>> >> > before printing (ubuntu)...
>> >> >
>> >> > Perphaps anybody have had the same problem before... or knows how I
>> >> > do that or where I can find info about doing that...
>> >> >
>> >> > I would be much obliged for any hepful information...
>> >> >
>> >> > Regards,
>> >> > Daniel.
>> >>
>> >> Don't touch the ColorDevice attribute but instead change the
>> >> *DefaultColorSpace: xxxx
>> >> (xxxx will be CMYK or RGB) to
>> >> *DefaultColorSpace: Gray
>> >>
>> >> Helge
>> >> for the grayscale queue.
>> >>
>> >> _______________________________________________
>> >> cups mailing list
>> >> cups at easysw.com
>> >> http://lists.easysw.com/mailman/listinfo/cups
>> >>
>>
>> Well, then in addition insert the following lines into your PPDs
>> (folowing the DefaultColorSpace line:
>>
>> *JobPatchFile 1 : "<</ProcessColorModel /DeviceXXX>>setpagedevice"
>>
>> where XXX = Gray for the grayscale queue and XXX = CMYK or RGB
>> (whatever is listed in the DefaultColorSpace line).
>>
>> Helge
>>
>> _______________________________________________
>> cups mailing list
>> cups at easysw.com
>> http://lists.easysw.com/mailman/listinfo/cups
>>

What kind of printer is it? The job patch file statement is only applicable 
to native PostScript printers, and it depends on the implementation of the 
PS interpreter if it works (it works for PS interpreters by Adobe and a lot 
of others which tightly stick to Adobe's specs).

And it will not work if Ghostscript is used as PostScript interpreter.

Helge





More information about the cups mailing list