views:

60

answers:

1

Is it possible to write a script for Adobe Illustrator or some other tool that will read the contents of a number of PDF files and convert all the RGB colours to CMYK?

If so, could somebody please point out some of the steps involved, or where to find more information on this?

+2  A: 

This answer is not for Illustrator, but for 'some other tool', namely Ghostscript (download gs871w32.exe or gs871w64.exe).

Ghostscript allows you to 're-distill' PDFs (without an intermediate conversion to PostScript, the dreaded 'refrying' detour). Try this command:

gswin32c.exe ^
    -o c:/path/to/output-cmyk.pdf ^
    -sDEVICE=pdfwrite ^
    -dUseCIEColor ^
    -sProcessColorModel=DeviceCMYK ^
    -sColorConversionStrategy=/CMYK ^
    input-rgb.pdf

And if you are able to wait for a few more weeks, Ghostscript 9.00 will be released. This new version will sport support of colormanagement (based on LCMS) with ICC profiles for the first time ever...

pipitas
I gave this a shot.. it seems to have done the trick. I'm not really familiar with colour conversions, so please bear with me on this. Is it possible to specify a map that each RGB should go to in CMYK? Or is it done by best guess? Or is there a more accurate/scientific approach this application takes that I obviously don't know of?
DaveDev
@DaveDev: so... it seems to have done the trick? But you still see no reason to "accept" the answer? ----------- The 'map' you are asking for -- in colormanagement world they call it an 'ICC profile'. And re. ICC profile support in Ghostscript: see the last paragraph of my response ;-)
pipitas
relax dude, see my acceptance rate? I accept answers when I'm ready. Sounds good though. I'll keep an eye out for version 9. Thanks
DaveDev