5

Here is my pdf image file you can download, and below is minimal example

\documentclass[10pt,a4paper]{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.7\linewidth]{42}
\end{figure}
\end{document}

If I compiled it with Pdflatex, everything is fine. However, if I compile it with XeLatex, image is just blank! What is wrong? Is this pdf image file broken? Or it is the problem of xelatex?

2
  • your file works for me with xelatex in texlive 2016 Commented Oct 5, 2016 at 8:37
  • @DavidCarlisle Oh, mine is Texlive2015
    – user15964
    Commented Oct 5, 2016 at 8:46

1 Answer 1

6

Probably you are using an old version of xdvipdfmx. In the old xdvipdfmx, PDF files, which are newer than version 1.5, are denied to include. The version of 42.pdf is 1.7. A workaround is

xelatex -output-driver="xdvipdfmx -q -E -V 7" test.tex

The xdvipdfmx in TeX Live 2016 tries to include PDF files even if the version is newer than 1.5.

1
  • Thank you. This makes sense. I use lower version of pdf image, it works
    – user15964
    Commented Oct 5, 2016 at 9:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .