[comp.windows.x] Looking for PostScript Previewer in X Windows

alext@pine.comp (Alex Tomlinson) (04/16/91)

I'm looking for a way to preview PostScript files 
in X windows on a Sun 3/80.  

	- Is there such a thing?
	- If so, where can I get it?

Thanks,
Alex

vishy@catinhat.Berkeley.EDU (V. Visweswaran) (04/16/91)

>> I'm looking for a way to preview PostScript files 
>> in X windows on a Sun 3/80.  

Try GhostScript (GNU software) from the Free Software Foundation. The sources should be available at
most anonymous ftp sites that have GNU software ( it is available from wuarchive.wustl.edu under 
under pub/ghostscript-2.1.1.tar.Z ).  Also, there is a program called xps that supposedly works under
X11 R3, but I have not tried it. 

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.       	
	
						-- V. Visweswaran
						 Email: vishy@catinhat.princeton.edu   	
					    	     

brown@ftms.UUCP (Vidiot) (04/16/91)

In article <ALEXT.91Apr15193044@pine.comp> alext@pine.comp (Alex Tomlinson) writes:
<
<I'm looking for a way to preview PostScript files 
<in X windows on a Sun 3/80.  
<
<	- Is there such a thing?

Yes.  There is OpenWindows from Sun.  It has the pageview program.  There is
also GhostScript.

<	- If so, where can I get it?

From Sun and the net (various ftp sites)
-- 
harvard\
  ucbvax!uwvax!astroatc!ftms!brown
rutgers/
INTERNET: spool.cs.wisc.edu!astroatc!ftms!brown

sjl@doc.ic.ac.uk (Steve J Lacey) (04/17/91)

In article <ALEXT.91Apr15193044@pine.comp> alext@pine.comp (Alex Tomlinson) writes:

alext> I'm looking for a way to preview PostScript files 
alext> in X windows on a Sun 3/80.  

alext> - Is there such a thing?
alext> - If so, where can I get it?

You could have a look a Gnu's Ghostscript. We use it here. Check out
your nearest GNU archive...

alext> Thanks,
alext> Alex

Steve.
--
-----
Steve J Lacey, Systems Group.      (In my opinion, my opinions are just that.)
Department of Computing, Imperial College of Science, Technology and Medicine,
180 Queen's Gate, London SW7. Phone : 071 589 5111 x5085, Fax : 071 581 8024 
Email : sjl@doc.ic.ac.uk, ..!ukc!icdoc!sjl, sjl@athena.mit.edu

               Hold the MAYO & pass the COSMIC AWARENESS...

Leisner.henr801c@xerox.COM (04/18/91)

I have experience with xps and ghostscript.

Use ghostscript as a base and improve (if you can) on it.

marty
(Knowledge is useful in the Information Age)
(Software is mindstuff.  It is the hardest activity created by man)
ARPA:	leisner.wbst139@xerox.com
NS:  leisner:wbst139:xerox
UUCP:	hplabs!arisia!leisner

datri@convex.com (Anthony A. Datri) (04/19/91)

In article <8335@idunno.Princeton.EDU> vishy@catinhat.Berkeley.EDU
  (V. Visweswaran) writes in a window far too wide for mortals:

>>> I'm looking for a way to preview PostScript files 
>>> in X windows on a Sun 3/80.  

[ wow -- proof that *someone* else out there has a 3/80!  Love those diagonal
  simm sockets... ]

>Try GhostScript (GNU software) from the Free Software Foundation.

Kinda.  It's a GNU program, but not really from the FSF.

>Also, there is a program called xps that supposedly works under
>X11 R3, but I have not tried it. 

xps was written by Crispin Goswell; a later and much more stable version is
known as ralpage.  It can be ftp'd from expo.lcs.mit.edu.

Ralpage uses X's fonts, so it displays text fairly well.  It's a little
flaky, though, and I've never gotten it to work under anything but SunOS.

Ghostscript uses its own limited set of bitmapped fonts, so displayed text
at normal point sizes isn't very good.  It's pretty robust, though, and
handles color displays.  Better yet, it compiles easily in lots of places.
I run it under SunOS, HPUX, RISC/OS, and ConvexOS.  It also comes with a
chunk of code that lets one render directly into P{B,P}M files, which can
be very useful.

>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.

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.

--

--
datri@convex.com

cadp53@vaxa.strath.ac.uk (A. Carty) (04/19/91)

In article <ALEXT.91Apr15193044@pine.comp>, alext@pine.comp (Alex Tomlinson) writes:
> 
> I'm looking for a way to preview PostScript files 
> in X windows on a Sun 3/80.  
> 
> 	- Is there such a thing?
> 	- If so, where can I get it?
> 
> Thanks,
> Alex

Sure is.........Try 'xps' from 129.127.40.3 [ I think! ]. It's preety good.

-- 
|-------------------------------------------------------------------|
|			     | "Mike? Mike? Can you hear me?	    |
| Vermyn at:		     | I'll catch you with my death-bag!    |
|     			     | You may think I've gone insane,	    |
| cadp53@uk.ac.strath.vaxa   | But I promise you..........          |
| cadx613@uk.ac.strath.ccsun |	        I *will* kill again!!!!"    |
| cadp53@uk.ac.strath.ccsun  |					    |
|			     |			-BOB	  	    |
|-------------------------------------------------------------------|

fgreco@govt.shearson.COM (Frank Greco) (04/20/91)

> >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.

lee@sq.sq.com (Liam R. E. Quin) (04/23/91)

datri@convex.com (Anthony A. Datri) writes:

[I'm posting this because the two problems are so common....]

[1]
> 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.

That's correct -- it follows the OPEN LOOK specs.
If you don't run olwm (or olvwm) you can use xkill...

[2]
> I don't know whether
> to blame pageview or the code, but I've got PS files that pageview displays
> upside down and mirrored.

If PostScript code contains "initgraphics" it will come out like this.
Comment out the initgraphics (or delete it) and everything should be fine.

Although pageview is *extraordinarily* slow on my 4/110, since I have no
hardware floating-point, the editor (textsw, same as mailtool etc.) and
log make it useful enough that I do use it fairly often.


Lee


-- 
Liam Russell Quin, SoftQuad Inc., Toronto... 416 963 8337... lee@sq.com
	   `What one person finds valuable others do not even notice.
	    And they do not notice that they do not notice.'
-- Scott Kim, `Interdisciplinary Communication', in `The Art of [HCI] Design'