[XeTeX] XeTexXpdffile problem/bug
Rik Kabel
xetexer at rik.users.panix.com
Sat Dec 6 04:45:00 CET 2008
Attached are two minimal examples demonstrating a problem with \XeTeXpdffile.
The problem is that the included file is not processed if there is nothing
present on the page before the graphic.
Minimal example 1 shows the basic problem. Mimimal example 2 shows that if
there is something else on the page, even \hspace{0em}, the correct output is
generated.
If the \XeTeXpdffile is by itself on a \newpage, the same problem occurs.
This is not a problem of e-TeX not being enabled -- XeTeX is running in
extended mode according to the log.
The problem does not exist if the pdf file is included by way of
\usepackage{graphicx} ... \includegraphics{ok.pdf} or \usepackage{pdfpages} ...
\includepdf{ok.pdf}.
The file "ok.pdf" is not provided here. Any unencrypted, uncompressed pdf file
should work to demonstrate the problem -- the example will try to include the
first page of whatever file you provide.
%< ================= Minimal example 1 fails ==================
% This example produces no output file
\documentclass{minimal}
\begin{document}
\XeTeXpdffile "ok.pdf"
\end{document}
%< ================= end minimal example 1 fails ==============
%< ================= Minimal example 2 works %< ===============
% This example produces an output file with the pdf
\documentclass{minimal}
\begin{document}
\hspace{0em}% can also be placed after graphic
\XeTeXpdffile "ok.pdf"
\end{document}
%< ================= end minimal example 2 works ==============
--
Rik
More information about the XeTeX
mailing list