home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6417 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.9 KB

  1. Path: sparky!uunet!cs.utexas.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!ftms!brown
  2. From: brown@ftms.UUCP (Vidiot)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Re: SUMMARY: How can I tell if a PS file is in color?
  5. Message-ID: <449@ftms.UUCP>
  6. Date: 22 Jan 93 17:12:28 GMT
  7. References: <C15wH7.KpH@newsflash.concordia.ca> <1993Jan21.143627.1@csc.canterbury.ac.nz>
  8. Reply-To: brown@ftms.UUCP (Vidiot)
  9. Organization: Vidiot's Other Hangout
  10. Lines: 35
  11.  
  12. In article <1993Jan21.143627.1@csc.canterbury.ac.nz> Nick FitzGerald <n.fitzgerald> writes:
  13. <In article <C15wH7.KpH@newsflash.concordia.ca>, peter@Civil.Concordia.CA
  14. <(Peter Kaldis) writes:
  15. <
  16. <> Well I got one response to this query from Jonathan Monsarrat (jgm@cs.brown.edu)
  17. <> and he says look for keywords like:
  18. <> 
  19. <>         currentrgbcolor
  20. <>         setrgbcolor
  21. <> 
  22. <> These get the color, and set the color, respectively. So doing a simple
  23. <> grep on the file and searching for words like "color" should do the trick
  24. <
  25. <This may not be fool-proof however.  I'm fairly sure you will find these
  26. <commands in PS generated by drivers for some PC software (if not others)
  27. <specifically for certain colour PS printers, even if the PS simply
  28. <producing black text.
  29.  
  30. You are correct in that many software houses will put out all of the color
  31. procedures that they define for their software.  But, the actual output may
  32. never call them.  So, searching for the color keyword will result in hits,
  33. but are the redefined procedures, that contain the keywors, really being
  34. used.
  35.  
  36. I suspose the best way to see if it is in color is to run it through a
  37. PostScript interpreter like pageview (for OpenWindows).  I don't remember if
  38. GhostScript will display color PostScript, or B&W the output.
  39.  
  40. Warning: pageview has to be used at the low dpi settings, otherwise it will
  41. display the output in B&W :-(
  42. -- 
  43. harvard\
  44.   ucbvax!uwvax!astroatc!ftms!brown  or  uu2.psi.com!ftms!brown
  45. rutgers/
  46. INTERNET: brown@wi.extrel.com  or  ftms!brown%astroatc.UUCP@cs.wisc.edu
  47.