> (1) Is there an "easy" way to convert RGB-EPS files to CMYK-EPS files?
I don't know if it would be considered easy or not, but without
too much effort one can convert a PostScript file produced by
NCAR Graphics, which uses the RGB color model, to a file using
the CMYK color model. Directions follow, together with an ed
script that will do the desired thing for you.
In the PostScript file you need to do two things:
1.) After the line:
%%BeginProlog
insert the lines:
------------------ begin lines to insert -----------------
/min3
{
2 copy lt {pop} {exch pop} ifelse
2 copy lt {pop} {exch pop} ifelse
} bind def
/set_cmyk_color
{
1. exch sub /YLO exch def
1. exch sub /MAG exch def
1. exch sub /CYN exch def
YLO MAG CYN min3 /B_CMY exch def
CYN B_CMY sub /C_CMY exch def
MAG B_CMY sub /M_CMY exch def
YLO B_CMY sub /Y_CMY exch def
C_CMY M_CMY Y_CMY B_CMY setcmykcolor
} bind def
------------------ end lines to insert -----------------
2.) Change all occurrances of "setrgbcolor" in the file to
"set_cmyk_color".
Here is an ed script that will do this for you and write the
edited file into a file named "new_file":
-------------------------- Begin ed script ------------------
/^%%BeginProlog/
a
/min3
{
2 copy lt {pop} {exch pop} ifelse
2 copy lt {pop} {exch pop} ifelse
} bind def
/set_cmyk_color
{
1. exch sub /YLO exch def
1. exch sub /MAG exch def
1. exch sub /CYN exch def
YLO MAG CYN min3 /B_CMY exch def
CYN B_CMY sub /C_CMY exch def
MAG B_CMY sub /M_CMY exch def
YLO B_CMY sub /Y_CMY exch def
C_CMY M_CMY Y_CMY B_CMY setcmykcolor
} bind def
.
1,$s/setrgbcolor/set_cmyk_color/
1,$w new_file
-------------------------- end ed script ------------------
--Fred Clare
This archive was generated by hypermail 2b29 : Wed Jun 28 2000 - 09:45:42 MDT