<font color="#000000"><font size="2"><font face="verdana,sans-serif">Hi,</font></font></font><div><font color="#000000"><font size="2"><font face="verdana,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="verdana,sans-serif">I'm testing in two printers: one is de PDF printer (virtual printer) and another is a HP5500, both installed in an Ubuntu 10.04. The interpreter of PostScript is Ghostscript by default (the interpreter for linux systems). In both cases CUPS seems don't use the ppd file due to all the changes I made in them don't take effect in absolute. In both cases the printer prints in color if the file is writen in color.</font></font></font></div>

<div><font color="#000000"><font size="2"><font face="verdana,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="verdana,sans-serif">There are another way to set a queue in black and white and other in color for the same printer? Using CUPS of course...</font></font></font></div>

<div><font color="#000000"><font size="2"><font face="verdana,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="verdana,sans-serif">I'm very surprised with this.... in the first moment I think that resolve the problem could be easy but after more than 10 days searching and reading a lot of docs I begin to think that is a much more complicated problem it seems at the begining...</font></font></font></div>

<div><font color="#000000"><font size="2"><font face="verdana,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="verdana,sans-serif">In my system I launch the jobs to the printer using 'lp -d PDF/hp5500 job.pdf' with the printer properly configured (ppd file in /etc/cups/ppd/xxx.ppd), in fact, the printer prints the doc but always in color.</font></font></font></div>

<div><font color="#000000"><font size="2"><font face="verdana,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="verdana,sans-serif">Thanks in advance,</font></font></font></div>

<div><font color="#000000"><font size="2"><font face="verdana,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="verdana,sans-serif">regards,</font></font></font></div><div><font color="#000000"><font size="2"><font face="verdana,sans-serif">Daniel.<br>

</font></font></font><br><div class="gmail_quote">2011/10/17 Helge Blischke <span dir="ltr"><<a href="mailto:h.blischke@acm.org">h.blischke@acm.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

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