Article View: comp.sys.next.programmer
Article #870Re: strange color PS problem....
From: Dave Hess
Date: Wed, 09 Sep 1992 13:34
Date: Wed, 09 Sep 1992 13:34
52 lines
2108 bytes
2108 bytes
In article <6602@vtserf.cc.vt.edu> gbol@rglnext.geol.vt.edu (Gregory Lampshire) writes: > > I am attempting to view SAS generated color PS on a NeXTdimensions. > Here's what happens: > > If I use YAP the image is in color. > If I use Preview the image is in B&W but dithered for color (ie the > colored lines look like greyscale--they look bad). > If I use Mme2.0 and preview a color plot, the previewer uses color. > > > The SAS PS file is pretty trashy, no comments anywhere. Anybody have a > clue as to why my SAS PS file only is in color in Yap and not in Preview? > Is it just very poor PS on SAS's part? (the SAS color ps file is using the > setrgbcolor command. I can see them in the file). > Poor PostScript is probably your problem. If Preview doesn't see the proper header and page information in the document it will not display it in color. I usually add the following to a trashy PS document to get Preview to display it properly. Add/change the following at the top of the doc. %!PS-Adobe-2.0 %%EndComments %%BeginProlog Put the following just before the first page begins. %%EndProlog %%Page: 1 1 Put the following before the rest of the pages (usually after showpage's) where x is the proper page number. %%Page: x x That is usually enough to make Preview happy. Note that depending on the consistency of the output, you can probably automate these steps in a shell script (I've got one for PATRAN on the Cray). Hope that helps. Dave -- David K. Hess Graduate Assistant David-Hess@tamu.edu Supercomputer Center Texas A&M University
Technical Details
Message-ID:
<1992Sep9.133450.3506@tamsun.tamu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!newsReferences:
<6602@vtserf.cc.vt.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!news From: d1h1883@sc.tamu.edu (Dave Hess) Subject: Re: strange color PS problem.... Message-ID: <1992Sep9.133450.3506@tamsun.tamu.edu> Sender: news@tamsun.tamu.edu (Read News) Reply-To: David-Hess@tamu.edu Organization: Texas A&M University, College Station References: <6602@vtserf.cc.vt.edu> Date: Wed, 9 Sep 1992 13:34:50 GMT Lines: 52