[XeTeX] XeTeX/xdvipdfmx or the driver bug with eps images
kakuto at fuk.kindai.ac.jp
Thu May 29 02:45:56 CEST 2014
> `epstopdf' does not require that the PostScript file is a strict
> Encapsulated PostScript file. It takes the BoundingBox it can find,
> moves the graphics to the origin, sets the new media size
> (setpagedevice) and calls ghostscript for the conversion to PDF.
> In the case that the PostScript file is *not* an EPS file, this
> might succeed or fail.
> XeTeX/xdvipdfmx/dvipdfmx are using ghostscript with option `-dEPSCrop',
> configured in TDS:dvipdfmx/dvipdfmx.cfg. This option *requires*
> EPS files. It seems that ghostscript can be fooled by an EPSF header
> line, e.g. %!PS-Adobe-2.0 EPSF-2.0
I have tested
D "epstopdf --outfile='%o' '%i'"
It worked fine with the present xetex.def and dvipdfmx.def.
This can be a good way, though it is too late for TL 2014.
Note that repstopdf does not work since %o is an absolute
More information about the XeTeX