<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">ok, I don't understand all that you say ("</font></font></font><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">In fact you reconfigured the PDF printer to be a raw printer</span><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">...").</span></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">The last days I was thinking about the posibility of using CUPS tools (psutils package) which includes pstop and others. </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 print (text and images) in black and white (or grayscale) from a color PDF/PS file using some of that tools? It could be a possible solution...</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.<br></font></font></font><br><div class="gmail_quote">

2011/10/18 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">> thanks very much for your replies.<br>
><br>
> There are one thing I don't understand: if I (1) remove the PDF.ppd (ppd<br>
> for the PDF printer) from /etc/cups/ppd/ and (2) restart CUPS and (3) send<br>
> a job to the PDF printer, then the PDF printer prints the job!!! why? The<br>
> only thing I can think is the printing system is not using the ppd files!<br>
><br>
> Could be possible to (re)use (only) the code of the CUPS web interface?<br>
> (admin printers, to configure options like page size or color schema).<br>
><br>
> Thanks in advance, again.<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>
>> > I'm testing in two printers: one is de PDF printer (virtual printer)<br>
>> > and another is a HP5500, both installed in an Ubuntu 10.04. The<br>
>> > interpreter<br>
>> of<br>
>> > PostScript is Ghostscript by default (the interpreter for linux<br>
>> > systems). In both cases CUPS seems don't use the ppd file due to all<br>
>> > the changes I made in them don't take effect in absolute. In both cases<br>
>> > the printer 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<br>
>> 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<br>
>> > resolve the problem could be easy but after more than 10 days searching<br>
>> > and reading a lot of docs I begin to think that is a much more<br>
>> > complicated 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<br>
>> > in color.<br>
>> ><br>
>> > Thanks in advance,<br>
>> ><br>
>> > regards,<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>
>> >> > 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<br>
>> 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<br>
>> 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<br>
>> 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.<br>
>> My<br>
>> >> >> >> > objetive is to do this internally from my (php) program but<br>
>> >> >> >> > I'm trying to do manually<br>
>> >> >> >> before<br>
>> >> >> >> > for understanding the process... It's seems CUPS doesn't read<br>
>> the<br>
>> >> >> >> > ppd<br>
>> >> >> >> file<br>
>> >> >> >> > before printing (ubuntu)...<br>
>> >> >> >> ><br>
>> >> >> >> > Perphaps anybody have had the same problem before... or knows<br>
>> 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<br>
>> >> Adobe's 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>
>> If your real printer is the "HP DesignJet 5500 PS3", which is a native<br>
>> PostScript device, it *does* honour the /ProcessColorModel setting.. But<br>
>> 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<br>
>> the 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>
>><br>
>> Helge<br>
>><br>
<br>
</div></div>In fact you reconfigured the PDF printer to be a raw printer, which<br>
processes any PostScript job "printed" to it as is, i.e. without applying<br>
any PPD settings.<br>
<br>
The PPD settings are applied to the job by the pstops filter (or the<br>
pdftopdf filter on certain Linux distributions) and thus only if this<br>
(these) filter(s) are invoked for the respective job.<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>