I'm trying to change the color from EPS files that contain only vectors (no rasters). Currently, I convert them to SVG, manipulate the colors, and convert them back to PDF or EPS with Inkscape. This works perfectly but doesn't allow me to apply CMYK coloring, only RGB. After investigating a little bit and finding answers like this or this I'm trying to override the /setcmykcolor function my EPS file uses. You can download it from here.
The EPS looks like this:
And I want to convert the color to CMYK = 0 1 1 0 so it looks like this:
In this case, the EPS file is black but it could be any other color. I tried adding this after %%BeginProlog which should override the /setcmykcolor to always apply 0 1 1 0 as the CMYK color:
/osetcmykcolor {/setcmykcolor} bind def /setcmykcolor {pop [0 1 1 0] osetcmykcolor} def
Or this:
/osetcmykcolor {/setcmykcolor} bind def /setcmykcolor {0 1 1 0 osetcmykcolor} def
But everything is still black. I know /setcmykcolor is the right function because using 0 1 1 0 setcmykcolor just before drawing the path makes it red. I went through postscript programming manuals but I'm having a hard time trying to figure out what's wrong here!
Any help would be greatly appreciated!


{/setcmykcolor} bind def. I think that should be written without a slash there. - luser droog