I have modified poppler to embed ICC color spaces in the PostScript output of pdftops. I am using the cmsGetPostScriptCSA function to convert PDF ICC profiles to PostScript CSAs.
Testing with lcms 2.6 and this PDF http://www.color.org/version4pdf.pdf I am getting VMerrors when printing to a Fuji Xerox CM305df printer. The PostScript executive operator reports this version of PS interpreter: PostScript(r) Version 3018.102 (c) Copyright 1984-2003 Adobe Systems Incorporated. Typefaces (c) Copyright 1981 Linotype-Hell AG and/or its subsidiaries. All Rights Reserved. I've create a reduced test case at http://people.freedesktop.org/~ajohnson/lcms/test.ps that contains just the CSA and the image it fails on. The CSA works for solid colors but fails on the above printer with images. I've narrowed the problem down to the size of the LUT in the /DecodeABC procedure. If I reduce the size of this LUT to a few entries it works. If I move the LUT out of the procedure as in: http://people.freedesktop.org/~ajohnson/lcms/test2.ps it works. This fix could be further improved to ensure that any existing dictionary key with the same name is restored as in: http://people.freedesktop.org/~ajohnson/lcms/test3.ps It would also be helpful if the maximum line length of the generated CSA is restricted to not exceed 255 characters to ensure DSC compliance. See page 25 of http://partners.adobe.com/public/developer/en/ps/5001.DSC_Spec.pdf ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user