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?
In order to get PDFs to print properly on printing presses, it's often necessary to convert them from RGB to CMYK. You can convert RGB PDFs to CMYK from the Preferences dialog box in Adobe Acrobat Pro.
To create a new CMYK document in Photoshop, go to File > New. In the New Document window, simply switch the color mode to CMYK (Photoshop defaults to RGB). If you're wanting to convert an image from RGB to CMYK, then simply open the image in Photoshop. Then, navigate to Image > Mode > CMYK.
To put it simply, Adobe design tools can convert RGB to CMYK and are the most commonly used design software. Microsoft Publisher, Corel Draw and Quark Xpress can also convert from RGB to CMYK.
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 ^
-sColorConversionStrategyForImages=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...
UPDATE: I updated above command because I missed to put in the option to also convert images.
If color conversion does not work as desired and if you see a message like "Unable to convert color space to Gray, reverting strategy to LeaveColorUnchanged" then...
In this case add -dOverrideICC
to the command line and see if it changes the result as desired.
ABCpdf will recolor to CMYK or any other color space or profile you can think of. See:
http://www.websupergoo.com/helppdf7net/source/8-abcpdf6.operations/3-recoloroperation/1-methods/recolor.htm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With