Article View: comp.lang.postscript
Article #6471Re: SUMMARY: How can I tell if a PS file is in color?
From: Vidiot
Date: Fri, 22 Jan 1993 17:12
Date: Fri, 22 Jan 1993 17:12
35 lines
2018 bytes
2018 bytes
In article <1993Jan21.143627.1@csc.canterbury.ac.nz> Nick FitzGerald <n.fitzgerald> writes: <In article <C15wH7.KpH@newsflash.concordia.ca>, peter@Civil.Concordia.CA <(Peter Kaldis) writes: < <> Well I got one response to this query from Jonathan Monsarrat (jgm@cs.brown.edu) <> and he says look for keywords like: <> <> currentrgbcolor <> setrgbcolor <> <> These get the color, and set the color, respectively. So doing a simple <> grep on the file and searching for words like "color" should do the trick < <This may not be fool-proof however. I'm fairly sure you will find these <commands in PS generated by drivers for some PC software (if not others) <specifically for certain colour PS printers, even if the PS simply <producing black text. You are correct in that many software houses will put out all of the color procedures that they define for their software. But, the actual output may never call them. So, searching for the color keyword will result in hits, but are the redefined procedures, that contain the keywors, really being used. I suspose the best way to see if it is in color is to run it through a PostScript interpreter like pageview (for OpenWindows). I don't remember if GhostScript will display color PostScript, or B&W the output. Warning: pageview has to be used at the low dpi settings, otherwise it will display the output in B&W :-( -- harvard\ ucbvax!uwvax!astroatc!ftms!brown or uu2.psi.com!ftms!brown rutgers/ INTERNET: brown@wi.extrel.com or ftms!brown%astroatc.UUCP@cs.wisc.edu
Technical Details
Message-ID:
<449@ftms.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!ftms!brownReferences:
<C15wH7.KpH@newsflash.concordia.ca> <1993Jan21.143627.1@csc.canterbury.ac.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!ftms!brown From: brown@ftms.UUCP (Vidiot) Newsgroups: comp.lang.postscript Subject: Re: SUMMARY: How can I tell if a PS file is in color? Message-ID: <449@ftms.UUCP> Date: 22 Jan 93 17:12:28 GMT References: <C15wH7.KpH@newsflash.concordia.ca> <1993Jan21.143627.1@csc.canterbury.ac.nz> Reply-To: brown@ftms.UUCP (Vidiot) Organization: Vidiot's Other Hangout Lines: 35