Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2019/05/26)20190527 
Paulo Can anyone point me to hwere will be the best place to make a request for a feature -- the creation of a device that will be able to recognize (and list) the colorspaces of an EPS?12:08.34 
kens You can open enhancement requests at our Bugzilla12:15.20 
  But to be honest, I don't think its something we are likely to do12:15.34 
  Note that it could not be limited to EPS files either, it would have to cover all input formats (as a device).12:16.02 
  You could write a PostScript program to 'hook' the colour operators (setgray, setrgbcolor, setcmykcolor, setcolorspace) and report from teh PostScript level12:16.42 
Paulo Nice idea! I want something simple. Can you point me to an example of such PS program so I can get started?12:27.41 
kens Off the top of my head, no, sorry.12:28.04 
chrisl Have a look at: https://stackoverflow.com/questions/16680747/how-can-i-extract-color-values-from-an-eps-file12:32.00 
kens <sigh> quoting an answer from me :-)12:32.30 
Paulo My question originated with that posting.12:32.51 
  Would you edit your answer and elaborate further?12:33.20 
kens Oh, well that shows you hot to redefine a PostScript operator as a user-supplied procedure. In this case the 'stroke' operator.12:33.21 
Paulo Would you edit your answer and elaborate further?12:33.46 
kens You would neeed to do similar code to save the original operator and redefine the colour operators in PostScript. That's the setgray, setrgbcolor, setcmykcolor and setcolorspace operators.12:34.04 
  gray, rgb and CMYK are easy to deal with. setcolorspace you would need to look at the operands to determine what kind of space it is.12:34.32 
 Forward 1 day (to 2019/05/28)>>> 
ghostscript.com #mupdf
Search: