How can I extract color values from an EPS file?
I'm trying to find all fill and stroke values used in an EPS file. I can parse the file, I just can't figure out how color values are defined in the EPS postscript section. I have converted the file to SVG (using ghostscript) and I can get the hex values, but an EPS to SVG conversion with a gradient produces files 20x the size. Is there a standard format for color values in postscript that I can extract from an EPS file? KenS PostScript is a programming language, not a simple file format, so there is no simple way to determine what is going on in the program. A gradient may well be defined as