home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6393 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.lang.postscript
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!news
  3. From: ab@nova.cc.purdue.edu (Allen B)
  4. Subject: Re: SUMMARY: How can I tell if a PS file is in color?
  5. Message-ID: <C17uJr.F8B@mentor.cc.purdue.edu>
  6. Sender: news@mentor.cc.purdue.edu (USENET News)
  7. Organization: Purdue University
  8. References: <C15wH7.KpH@newsflash.concordia.ca>
  9. Date: Thu, 21 Jan 1993 18:11:50 GMT
  10. Lines: 24
  11.  
  12. In article <C15wH7.KpH@newsflash.concordia.ca> peter@Civil.Concordia.CA (Peter  
  13. Kaldis) writes:
  14. > These get the color, and set the color, respectively. So doing a simple
  15. > grep on the file and searching for words like "color" should do the trick
  16. > Thanks Jon.
  17.  
  18. I meant to reply to you, but I've been ill.  You can also
  19. wedge all the painting commands (stroke, fill, show,
  20. etc.) with a stub routine that checks the current color.
  21. If it's not a gray shade, you can print a message back down
  22. the error channel.  I could modify my debugdict to do that
  23. pretty easily.  (Jon knows what I'm talking about.
  24. right?)
  25.  
  26. That would work in nearly any case (if they insist on using
  27. things in systemdict it won't), and you'd only need to
  28. preface your file with a new header and print it once to any
  29. device (or run it through GhostScript or something).
  30.  
  31. If you'd like to see that solution, I'll post it, but I
  32. haven't written it yet.  (It shouldn't be very hard to make
  33. from what I already have though.)
  34.  
  35. ab
  36.