<OT> Another postscript question:SOLVED

Joel Hammer Joel
Mon May 17 11:31:09 PDT 2004


Well, I messed around and found the solution.
At the end of the EPS file, there is a command _R
like this:

_R
S
%%Trailer
cleartomark
countdictstack exch sub { end } repeat
restore
%%EOF

S stands for showpage
_R is defined as below:
/_R {   % restore from saved state
   _s restore
} def

Removing _R makes things works just as expected.  When I figure out what
_s is, I may have more of a clue as to what is going on.

What really bugs me is that ps2epsi has this apparent bug, at least when
working with enscript. Oh well, it works when you take you the _R out.

Joel


            On Sun, May 12, 2002 at 01:21:59PM -0400, Joel Hammer wrote:
> Any postscript guru's here?
> 
> I created a postscript document with enscript, then ran ps2epsi against
> it.  When I try to open the eps file with gv, the bounding box is right
> but the text in the file just flashes on the screen for a fraction of
> a second.
> 
> The end of the eps file has the following:
> %%Trailer
> cleartomark
> countdictstack exch sub { end } repeat
> restore
> %%EOF                
> 
> When I remove the cleartomark command, the text remains on the screen, but I
> get a stack error.
> 
> I know enuf to understand that this is supposed to leave the stack in
> its original state, but, why does it erase the text it has already drawn?
> 
> Any insight appreciated,
> Joel
> 
> _______________________________________________
> Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
> Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.



More information about the Linux-users mailing list