This is related to:
- Converting PDF to CMYK (with identify recognizing CMYK).
- Script (or some other means) to convert RGB to CMYK in PDF?
… but a bit more specific here: say I have an RGB PDF, where the text color is “rich black” (R:0 G:0 B:0 gone to C:100 M:100 Y:100 K:100), and diverse images and vector graphics.
I would like to convert this to a CMYK PDF, using a free command line tool (so it is batch scriptable under Linux), which
- has contents only in the black (K) channel:
- Preserves vector graphics (+ text glyphs) – colors become grayscale in black (K) channel only
- Images get converted to grayscale in black (K) channel only
Thanks in advance for any answers,
Cheers!
As hinted in my comment to @Mark Storer, it turns out that forcing a gray print only on the K plate in CMYK, may not be so trivial … I guess it depends much on what is being used as “preflight” preview device – for Linux, the only thing I can find is
ghostscriptwithtiffsep, which is what I use for ‘sanity check’ regarding CMYK separations.Anyways, I got a lot of help in this thread on
comp.lang.postscript:… and one workflow that works for me is:
ghostscript‘sps2writeghostscriptto convert this PS back to PDF, while executing replacement functions in HackRGB-cmyk-inv.psghostscript‘stiffsepto check actual separationsIn respect to, say, this PDF generated by OpenOffice: blah-slide.pdf, the command lines would be:
This should only work on RGB values where R=G=B (and hopefully grayscale values), and only on text colors, and it also flattens text information – but it should be possible to confirm via
tiffsepthat the text indeed ends up only on the K plate.As mentioned in the newsgroup post, this is not extensively tested, but looks promising so far…
Cheers!