[gs-cvs] rev 9298 - trunk/gs/Resource/Init
giles at ghostscript.com
giles at ghostscript.com
Thu Dec 18 17:53:18 PST 2008
Author: giles
Date: 2008-12-18 17:53:18 -0800 (Thu, 18 Dec 2008)
New Revision: 9298
Modified:
trunk/gs/Resource/Init/pdf_draw.ps
Log:
Warn when the JPX ColorSpace key workaround is activated.
Details:
We don't use pdfformaterror because this is our failing, not the files.
But we call stderrprint to generate the output so it doesn't mangle
device output on stdout.
Suggested by Ray Johnston.
Modified: trunk/gs/Resource/Init/pdf_draw.ps
===================================================================
--- trunk/gs/Resource/Init/pdf_draw.ps 2008-12-19 01:53:17 UTC (rev 9297)
+++ trunk/gs/Resource/Init/pdf_draw.ps 2008-12-19 01:53:18 UTC (rev 9298)
@@ -1033,7 +1033,10 @@
% keys, in which case the interpreter must retrieve this information
% from inside the compressed stream. Here we substitute the most
% likely values as a work-around.
- not { [/DeviceRGB] /BitsPerComponent 8 def } if
+ not {
+ ( **** Warning: assuming JPX image is 8-bit RGB.\n) stderrprint
+ [/DeviceRGB] /BitsPerComponent 8 def
+ } if
resolvecolorspace /ColorSpace exch def
% Decode is required for the PostScript image operators.
/Decode 2 copy knownoget not {
More information about the gs-cvs
mailing list