home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-