[pdftex] pdfPicture for pdftex

George N. White III WhiteG at mar.dfo-mpo.gc.ca
Mon Dec 3 09:19:21 CET 2001


On Sun, 2 Dec 2001, Richard Sudarmono wrote:

> On 2  Dec 2001 15:25:07 Robin Fairbairns wrote:
>
> RF> the ghostscript script ps2epsi (for me) produces a .eps with the
> RF> correct bounding box, which converts fine using epstopdf
>
> (How) Can I call ps2epsi directly within GSView? Or do I have to call it
> _only_ from a dosbox (I use win98)?

Dos boxes provide a rather fragile and very limited environment -- you
might consider using a more powerful scripting language like Perl.

Dvips -E gives the bounding box of the TeX text, but omits line art drawn
using PostScript \specials. Ghostscript has a bbox device that can be used
from the command-line to print an accurate BoundingBox. It should not be
too hard to add another invocation of GS with "-sDEVICE=bbox" to the
eps2pdf Perl script to deal with cases where the PS file does not have
useful bbox information.

-- 
George N. White III <gnw3 at acm.org> Bedford Institute of Oceanography





More information about the pdftex mailing list