[XeTeX] page size of pdf file

Andreas Matthias andreas.matthias at gmail.com
Sun Oct 18 18:04:21 CEST 2009


The following example calculates the size of a pdf twice.
Once by using XeTeX primitives and once by using LaTeX's
graphics driver. Unfortunately, the size isn't the same.


\documentclass{article}
\usepackage{graphicx}

\begin{document}
\makeatletter

\setbox\z@=\hbox{\XeTeXpdffile "dummy.pdf"\relax}
\typeout{plain: \the\wd\z@, \the\ht\z@}


\setbox\z@=\hbox{\includegraphics{dummy.pdf}}
\typeout{latex: \the\wd\z@, \the\ht\z@}

\end{document}



Which yields the following:

plain: 597.5083pt, 845.04706pt
<use  "dummy.pdf" >
latex: 599.74895pt, 848.21597pt


Is there a fix for xetex.def, yet? I couldn't find a newer
one than:

   xetex.def    2006/08/10 v0.92



Ciao
Andreas



More information about the XeTeX mailing list