<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">thanks very much for your replies.</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 one thing I don't understand: if I (1) remove the PDF.ppd (ppd for the PDF printer) from /etc/cups/ppd/ and (2) restart CUPS and (3) send a job to the PDF printer, then the PDF printer prints the job!!! why? The only thing I can think is the printing system is not using the ppd files!</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">Could be possible to (re)use (only) the code of the CUPS web interface? (admin printers, to configure options like page size or color schema).</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, again.</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">> I'm testing in two printers: one is de PDF printer (virtual printer) and<br>
> another is a HP5500, both installed in an Ubuntu 10.04. The interpreter of<br>
> PostScript is Ghostscript by default (the interpreter for linux systems).<br>
> In both cases CUPS seems don't use the ppd file due to all the changes I<br>
> made in them don't take effect in absolute. In both cases the printer<br>
> prints in color if the file is writen in color.<br>
><br>
> There are another way to set a queue in black and white and other in color<br>
> for the same printer? Using CUPS of course...<br>
><br>
> I'm very surprised with this... in the first moment I think that resolve<br>
> the problem could be easy but after more than 10 days searching and<br>
> reading a lot of docs I begin to think that is a much more complicated<br>
> problem it seems at the begining...<br>
><br>
> In my system I launch the jobs to the printer using 'lp -d PDF/hp5500<br>
> job.pdf' with the printer properly configured (ppd file in<br>
> /etc/cups/ppd/xxx.ppd), in fact, the printer prints the doc but always in<br>
> color.<br>
><br>
> Thanks in advance,<br>
><br>
> regards,<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>
>> > 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>
>> > 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<br>
>> >> > test) still print in color... It is like CUPS doesn't use the ppd<br>
>> >> > files... it's possible?<br>
>> >> ><br>
>> >> > In the other hand, how I can change the appropiate value with a<br>
>> 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<br>
>> 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<br>
>> >> >> > setting de attribute ColorDevice to false but it doesn't work. My<br>
>> >> >> > objetive is to do this internally from my (php) program but I'm<br>
>> >> >> > trying to do 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<br>
>> >> >> > I 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>
>> What kind of printer is it? The job patch file statement is only<br>
>> applicable to native PostScript printers, and it depends on the<br>
>> implementation of the PS interpreter if it works (it works for PS<br>
>> interpreters by Adobe and a lot of others which tightly stick to Adobe's<br>
>> specs).<br>
>><br>
>> And it will not work if Ghostscript is used as PostScript interpreter.<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>If your real printer is the "HP DesignJet 5500 PS3", which is a native<br>
PostScript device, it *does* honour the /ProcessColorModel setting. But note<br>
that the PPD supplied by HP provides a UI option "HPColorAsGray" which is<br>
set to false by default. For this printer with this PPD you don't need the<br>
JobPatchFile but only configure the "DefaultHPColorAsGray" to true.<br>
<br>
But if your HP printer is *not* the native PostScript device (only PCL or<br>
RTL) then you are out of luck.<br>
<br>
As for the PDF virtual printer, it depends on the Ghostscript version you<br>
are using (execute gs -v to get the version). It requires a sufficiently<br>
recent version of Ghostscript to honour the ProcessColorModel for the<br>
pdfwrite device.<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>