Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!att!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: fgreco@govt.shearson.COM (Frank Greco) Newsgroups: comp.windows.x Subject: Re: Looking for PostScript Previewer in X Windows Message-ID: <9104191839.AA16304@fis1.shearson.com> Date: 19 Apr 91 18:39:22 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 43 > >If you have OpenWindows/XNews installed, then you can use > >'pageview' on the Suns. It lets you modify > >the postscript code and view it simultaneously > >, so it is really good for developing PS code. If you *do* have OpenWindows, you also have something called "xps" (under $OPENWINHOME/demo/xview) that is another XView app that talks to the NeWS side of the server. You write NeWS code in the TEXTSW, hit run, and rendering happens in the canvas below. Or you drag-n-drop PS files from the OPENLOOK filemanager into it (a la Pageview). You also have "psh" which opens a TTY connection to the NeWS side of the server. For an interactive session, you type in "executive" and you're off (or you can write a psh script). Default rendering happens in the framebuffer, or you can create a little NeWS canvas (a trivial one-liner) for your rendering. With a tiny bit more work (and I do mean tiny), you could also use the O-O TNT toolkit to create an app that renders PS and has an OPENLOOK interface. > > Well, both ralpage and gs can be interactive -- you get an executive prompt. > Pageview does, though, kinda embed an editor. Pageview has the odd quality > that there's no "quit" available from its menus -- I guess Sun expects one to > run olwm and use the features thereof to kill it off. I don't know whether > to blame pageview or the code, but I've got PS files that pageview displays > upside down and mirrored. Pageview does have its faults (OPENLOOK *users* are confused when they drag the image around... how about OL-style scrollbars?) but usually I've found the PS files to be offending by not conforming to EPS spec. Re: reverse mirror images. This one took a while to discover. Try commenting out the "initgraphics" someone in the top of your PS file, then try running pageview again. ie (this one works for me), sed 's/^initgraphics/%initgraphics/' < psfile | pageview - Frank G.