[XeTeX] xdvipdfmx doesn't seem to respect PDF crop areas

Jonathan Kew jonathan_kew at sil.org
Sun Sep 24 17:50:14 CEST 2006

On 24 Sep 2006, at 11:37 am, Akira Kakuto wrote:

> Hi Jonathan,
>>> Please move
>>> /usr/local/teTeX/share/texmf.tetex/tex/latex/dvipdfm/dvipdfm.def
>>> into
>>> /usr/local/teTeX/share/texmf.local/tex/latex/graphics/
>> Fantastic. Everything works now! Thanks Akira for all the help,
>> especially with dvipdfm.def and getting ebb to work with recent PDF
>> versions.
> If I change xetex-new.ch as follows, the example by Zachary
> becomes correct in the case of xetex.def + xdvipdfmx.
> Is the change wrong and does interfere xetex.def + xdv2pdf?

Thanks for this, Akira.

Yes, unfortunately it does affect xdv2pdf, because that driver  
assumes zero-based bounds and handles the offset for different PDF  
boxes itself. But I think it is cleaner to use the true bounds, and  
so I have applied this change (in a slightly modified version), and  
adjusted xdv2pdf so that it matches the xdvipdfmx behavior in this case.

In my (very limited) testing so far, it looks OK. If some "early  
adopters" (especially OS X users who can run both xdv2pdf and  
xdvipdfmx and compare results) care to update to the latest code from  
Subversion, and check that the various cases of image and PDF  
placement are handled consistently, that would be appreciated.


More information about the XeTeX mailing list