home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.postscript
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!news
- From: ab@nova.cc.purdue.edu (Allen B)
- Subject: Re: SUMMARY: How can I tell if a PS file is in color?
- Message-ID: <C17uJr.F8B@mentor.cc.purdue.edu>
- Sender: news@mentor.cc.purdue.edu (USENET News)
- Organization: Purdue University
- References: <C15wH7.KpH@newsflash.concordia.ca>
- Date: Thu, 21 Jan 1993 18:11:50 GMT
- Lines: 24
-
- In article <C15wH7.KpH@newsflash.concordia.ca> peter@Civil.Concordia.CA (Peter
- Kaldis) writes:
- > 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
- > Thanks Jon.
-
- I meant to reply to you, but I've been ill. You can also
- wedge all the painting commands (stroke, fill, show,
- etc.) with a stub routine that checks the current color.
- If it's not a gray shade, you can print a message back down
- the error channel. I could modify my debugdict to do that
- pretty easily. (Jon knows what I'm talking about.
- right?)
-
- That would work in nearly any case (if they insist on using
- things in systemdict it won't), and you'd only need to
- preface your file with a new header and print it once to any
- device (or run it through GhostScript or something).
-
- If you'd like to see that solution, I'll post it, but I
- haven't written it yet. (It shouldn't be very hard to make
- from what I already have though.)
-
- ab
-