Fwd: Re: [prog] GhostScript

Sue Stones suzo at bigpond.net.au
Tue Apr 8 16:38:30 EST 2003

I have tried that but instead of getting a display window I get the following
output.  (here the GS> is the prompt, followed by my instructions, then the
%% seems to be followed by the output maybe inplace of opening a window)

	GS>100 100 moveto
	GS>200 0 rlineto
	GS>0 100 rlineto
	GS>-200 0 rlineto
	GS>0 -100 rlineto
	%%BoundingBox: 99 99 301 201
	%%HiResBoundingBox: 99.499000 99.499000 300.496987 200.506990

	>>showpage, press <return> to continue<<

Is there something that I am missing?


On Tue, 8 Apr 2003 03:59 pm, you wrote:
> Sue writes:
> > I have just discovered that gostscript can be run from the comand
> > line using "gs".  But the tutorial that I found on the web suggests
> > that this comand opens a second window which displays the results of
> > the postscript comands.  This doesn't happen on my system (Mandrake
> > 9).
> >
> > Does anyone know if it is really supposed to open annother window,
> > and is there something else that I should know in order to use it.
>    Ghostscript's default output "device" is an X window so if you give
> it something to render, it will draw its own, minimal X window. To my
> understanding, the command "showpage" is what renders the preceding
> commands, opening up a new window if needed.
> Elizabeth


More information about the Programming mailing list