[tex-k] dvips special.pro hack to improve frame graphics

Tom Kacvinsky tjk@ams.org
Wed, 21 Mar 2001 14:11:55 -0500 (EST)

The EPSF spec available from Adobe has a list of PS operators that should not be
used in EPS files (or embedded graphics in general).  This is a good list of PS
operators that ought to be redefined in @beginspecial (or whatever it is).

While I am at it, the custom page size stuff in the config files shouldn't be
using setpageparams (which is undocumented).  We should be using setpagedevice
instead.  Yes, this is a level 2 operator, but ...


On Wed, 21 Mar 2001, Tomas G. Rokicki wrote:

> Based on a discussion with John Bartelt, I've discovered a small
> hack to special.lpro which will solve many (if not most) of the
> problems people have with Frame graphics (which are *not* EPSF
> and Adobe does not claim that they are EPSF and so on and so forth).
> The hack is straightforward.  In the two places where we override
> some of the basic PostScript primitives to kill off the page device
> operators (you can find these by looking for /erasepage), add
>    /setpagedevice { pop } N
> so we kill off setpagedevice too in the context of a graphics
> inclusion.
> This is probably a good idea, a no-brainer.  What do you guys
> think?  Any dangers here I'm neglecting?  I wonder what the
> current PostScript redbook says about this . . .