home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6065 < prev    next >
Encoding:
Text File  |  1992-09-09  |  2.0 KB  |  65 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!news
  3. From: d1h1883@sc.tamu.edu (Dave Hess)
  4. Subject: Re: strange color PS problem....
  5. Message-ID: <1992Sep9.133450.3506@tamsun.tamu.edu>
  6. Sender: news@tamsun.tamu.edu (Read News)
  7. Reply-To: David-Hess@tamu.edu
  8. Organization: Texas A&M University, College Station
  9. References: <6602@vtserf.cc.vt.edu>
  10. Date: Wed, 9 Sep 1992 13:34:50 GMT
  11. Lines: 52
  12.  
  13. In article <6602@vtserf.cc.vt.edu> gbol@rglnext.geol.vt.edu (Gregory  
  14. Lampshire) writes:
  15. > I am attempting to view SAS generated color PS on a NeXTdimensions.   
  16. > Here's what happens:
  17. > If I use YAP the image is in color.
  18. > If I use Preview the image is in B&W but dithered for color (ie the
  19. >     colored lines look like greyscale--they look bad).
  20. > If I use Mme2.0 and preview a color plot, the previewer uses color.
  21. > The SAS PS file is pretty trashy, no comments anywhere.  Anybody have a  
  22. > clue as to why my SAS PS file only is in color in Yap and not in Preview?   
  23. > Is it just very poor PS on SAS's part? (the SAS color ps file is using the  
  24. > setrgbcolor command.  I can see them in the file).
  25.  
  26. Poor PostScript is probably your problem. If Preview doesn't see the proper
  27. header and page information in the document it will not display it in color.
  28. I usually add the following to a trashy PS document to get Preview to display
  29. it properly.
  30.  
  31. Add/change the following at the top of the doc.
  32.  
  33. %!PS-Adobe-2.0
  34. %%EndComments
  35. %%BeginProlog
  36.  
  37. Put the following just before the first page begins.
  38.  
  39. %%EndProlog
  40. %%Page: 1 1
  41.  
  42. Put the following before the rest of the pages (usually after showpage's)
  43. where x is the proper page number.
  44.  
  45. %%Page: x x
  46.  
  47. That is usually enough to make Preview happy.
  48.  
  49. Note that depending on the consistency of the output, you can probably
  50. automate these steps in a shell script (I've got one for PATRAN on the Cray).
  51.  
  52. Hope that helps.
  53.  
  54. Dave
  55.  
  56. --
  57. David K. Hess
  58. Graduate Assistant                     David-Hess@tamu.edu
  59. Supercomputer Center                  Texas A&M University
  60.