I disagree. I vote we subject all apps creating untagged (but not really device) data to Darwinian selection, and let their maintainers be subjected to a rain of complaints. In the end a few decent apps with smart responsive developers will be left standing - the Adobe monopoly shows that having one app in each niche is amply sufficient. <div>
<br></div><div>Edmund<br><div><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 8:11 PM, Michael Vrhel <span dir="ltr">&lt;<a href="mailto:michael.vrhel@artifex.com">michael.vrhel@artifex.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div style="font-style:normal;font-family:&#39;DejaVu Sans&#39;;font-size:12pt;font-weight:400" dir="ltr">
<div dir="ltr">
<div style="font-family:&#39;Arial&#39;;color:#000000;font-size:10pt">
<div>Hal,</div>
<div> </div>
<div>I agree, the reality of the world is that there are a lot of bad PDF files 
out there and Ghostscript has to robustly handle the good the bad and the ugly. 
<img style="border-bottom-style:none;border-right-style:none;border-top-style:none;border-left-style:none" alt="Smile" src="cid:C020086663D1498EA847A237AE8B959A@michaelvPC"></div>
<div> </div>
<div>Michael</div>
<div style="font-style:normal;display:inline;font-family:&#39;Calibri&#39;;color:#000000;font-size:small;font-weight:normal;text-decoration:none">
<div style="font:10pt tahoma">
<div><font face="Arial"></font> </div>
<div style="background:#f5f5f5">
<div><b>From:</b> <a title="hvengel@gmail.com" href="mailto:hvengel@gmail.com" target="_blank">Hal V. Engel</a> </div>
<div><b>Sent:</b> Tuesday, March 01, 2011 9:47 AM</div>
<div><b>To:</b> <a title="openicc@lists.freedesktop.org" href="mailto:openicc@lists.freedesktop.org" target="_blank">openicc@lists.freedesktop.org</a> 
</div><div class="im">
<div><b>Subject:</b> Re: [Openicc] Printing Plans GhostScript</div></div></div></div>
<div> </div></div>
<div style="font-style:normal;display:inline;font-family:&#39;Calibri&#39;;color:#000000;font-size:small;font-weight:normal;text-decoration:none">
<p style="text-indent:0px;margin:0px">On 
Tuesday, March 01, 2011 02:15:32 AM Kai-Uwe Behrmann wrote:</p><div><div></div><div class="h5">
<p style="text-indent:0px;margin:0px">&gt; 
Hello Michael,</p>
<p style="text-indent:0px;margin:0px">&gt; 
</p>
<p style="text-indent:0px;margin:0px">&gt; 
Am 28.02.11, 22:09 -0800 schrieb Michael Vrhel:</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; Hi Jan-Peter,</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; </p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; So yes, ghostscript does apply ICC base color transformations on</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; Postscript files and this is true even for DeviceRGB and DeviceCMYK.</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; I need to add in the interface for rendering intent and black point</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; compensation. That will be coming shortly. In fact, I am also adding in</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; the ability to specify different output profiles for graphics, images,</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; and text as ghostscript keeps track of these objects during rendering,</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; even through transparency blending. The specification for these</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; options is primarily through the CLI but can be made through special</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; configurations.</p>
<p style="text-indent:0px;margin:0px">&gt; 
</p>
<p style="text-indent:0px;margin:0px">&gt; 
Would it possible to pass those profiles along the PDF document itself?</p>
<p style="text-indent:0px;margin:0px">&gt; 
</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; As far as &quot;turning off&quot; transformations for DeviceRGB or DeviceCMYK, 
that</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; will occur in cases where the source and destination profiles are the</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; same.</p>
<p style="text-indent:0px;margin:0px">&gt; 
</p>
<p style="text-indent:0px;margin:0px">&gt; 
We came several time to the conclusion that this scheme is not realy</p>
<p style="text-indent:0px;margin:0px">&gt; 
robust. So we would be happy you could point us to an other mechanism as</p>
<p style="text-indent:0px;margin:0px">&gt; 
well.</p>
<p style="text-indent:0px;margin:0px"> </p>
<p style="text-indent:0px;margin:0px">The 
reason that this is not robust is that the user app currently has no way to 
specify the source profiles to be used when the GS pdftoraster filter is called 
and no way to know what profile will be used by the print system so that it can 
specify a matching output color space.</p>
<p style="text-indent:0px;margin:0px"> </p>
<p style="text-indent:0px;margin:0px">The 
reason that this whole DeviceXXX thing is an issue is because we have so many 
dumb apps and libraries that use DeviceRGB and DeviceGray for objects that 
really should be taged with either sRGB or an equivalent CalRGB tag for RGB 
images and generic gray ICC profile or a CalGray tag for monochrome images. 
Dealing with these malformed PDFs causes all sorts of headaches. </p>
<p style="text-indent:0px;margin:0px"> </p>
<p style="text-indent:0px;margin:0px">&gt; 
</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; The obvious example occurs if I have a document that has an RGB image 
and</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; a CMYK image and I am printing to a CMYK device. In this case, the RGB</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; image will have to be transformed in some manner. That transformation</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; is under your control by specifying the desired default RGB source</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; profile to use. For the CMYK image, if you did not want the data</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; touched, you should make sure that your default CMYK source profile is</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; the same as your destination profile. The CMYK data will then pass</p>
<p style="text-indent:0px;margin:0px">&gt; 
&gt; through unmolested.</p>
<p style="text-indent:0px;margin:0px">&gt; 
</p>
<p style="text-indent:0px;margin:0px">&gt; 
Will adding a OutputIntent to a PDF/X (A/E) be honoured for DeviceXXX</p>
<p style="text-indent:0px;margin:0px">&gt; 
objects by Ghostscript? Leonard pointed this requirement out [1].</p>
<p style="text-indent:0px;margin:0px">&gt; 
It could then be used to pass through unmolested Cmyk or DeviceN to a</p>
<p style="text-indent:0px;margin:0px">&gt; 
according configured printer.</p>
<p style="text-indent:0px;margin:0px"> </p>
<p style="text-indent:0px;margin:0px">Why 
not unmolested RGB and Gray as well? Any app that is smart enough to create PDF 
spool files with the OutputIntent set should be assumed to be smart enough to 
know what it is doing and the PDF spec should be fully honered. The issue with 
assuming a color space for DeviceXXX objects should, if possible, be limited to 
apps that don&#39;t know better. At this point there do not appear to be any CM dumb 
apps that can create PDF spool files with the OutputIntent set. This is 
definitiely true for Qt apps that are using the standard Qt PDF printing 
chain.</p>
<p style="text-indent:0px;margin:0px"> </p>
<p style="text-indent:0px;margin:0px">The 
issue here is retargeting. If the print system receives a spool file with an 
OutputIntent that is different from what the system would use normally that 
device and settings what should it do. One of the reasons for using DeviceXXX 
for objects along with an OutputIntent is to allow for retargeting. Under those 
conditions it is assumed that the DeviceXXX objects are in the OutputIntent 
color space. This is to allow for the output to be retargeted to a different 
device if needed using an OutputIntent --&gt; new device color space transform 
for all DeviceXXX objects. This means that setting the OutputIntent is also not 
a robust solution unless there is some way for the app creating the spool file 
to query the system for the devices profile so that it can use that for the 
OutputIntent. This could be done using Oyranos or colord but this means that the 
app creating the PDF needs to be not only aware of color but also needs to knwo 
what printer is being targeted and how to get it&#39;s default profile for the print 
mode being used.</p>
<p style="text-indent:0px;margin:0px"> </p>
<p style="text-indent:0px;margin:0px">The 
basic issue always come back to the fact that most of the apps on peoples 
machines are producing malformed PDF files that by default use DeviceXXX and do 
not set the OutputIntent. If we were following the PDF spec. and DeviceXXX data 
would be passed through to the printer unchanged with unpredictable results for 
many apps. In addition, if the DeviceXXX objects did not match the color mode of 
the printer (IE. DeviceRGB but printer is a CMYK only or is set to CMYK in CUPS) 
or if the PDF has more than one DeviceXXX type (like DeviceRGB and DeviceGray 
which is possible with the current Qt PDF code) then the print job would fail. 
The problems is users expect stuff to &quot;just work&quot; and following the 
specification will fail for some number of print jobs with most software 
currently being used. This means that we need to do things like get the Qt PDF 
code fixed to be inline with the PDF specification and work at getting good PDF 
code into other libraries that support printing like GTK+. This is going to take 
some effort.</p>
<p style="text-indent:0px;margin:0px"> </p>
<p style="text-indent:0px;margin:0px">&gt; 
</p>
<p style="text-indent:0px;margin:0px">&gt; 
kind regards</p>
<p style="text-indent:0px;margin:0px">&gt; 
Kai-Uwe Behrmann</p>
<p style="text-indent:0px;margin:0px"> </p>
</div></div><p>
</p><hr><div class="im">
_______________________________________________<br>openicc mailing 
list<br><a href="mailto:openicc@lists.freedesktop.org" target="_blank">openicc@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/openicc" target="_blank">http://lists.freedesktop.org/mailman/listinfo/openicc</a></div>
<p></p></div></div></div></div>
<br>_______________________________________________<br>
openicc mailing list<br>
<a href="mailto:openicc@lists.freedesktop.org">openicc@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/openicc" target="_blank">http://lists.freedesktop.org/mailman/listinfo/openicc</a><br></blockquote></div><br></div></div>