[Tex/LaTex] Problem including PDF 1.6 files in XeTeX with MikTeX

graphicsmiktexpdfxetex

Here's the MWE for my problem:

\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{fontspec}
\setmainfont{Adobe Garamond}

\begin{document}
text
\begin{figure}
  \centering
\includegraphics[width=0.5in]{file.pdf}  
\end{figure}
\end{document}

I'm trying to compile this using xelatex, and am including file.pdf which is PDF 1.6.

When I compile on Ubuntu using TeXLive 2009, I get a warning about the version of the PDF file:

** WARNING ** Version of PDF file (1.6) is newer than version limit specification.

but the file compiles fine otherwise.

However, on MikTeX (v 2.9 64 bit) on cygwin, I get the following message:

** WARNING ** Version of PDF file (1.6) is newer than version limit specification.
** WARNING ** No image converter available for converting file "file.pdf" to PDF format.
** WARNING ** >> Please check if you have 'D' option in config file.
** WARNING ** pdf: image inclusion failed for "file.pdf".

The versions of xelatex are essentially the same. Some googling indicated a problem with dvipdfmx, but I'm confused as to what this has to do with xelatex. Any help would be greatly appreciated.

Best Answer

You need to raise the PDF version of the document itself. Locate the file dvipdfmx.cfg, the configuration file of the driver program XeTeX uses, and edit the V line to be

V  6

Don't forget to put the default settings back afterwards — they are there for a reason! Instead of modifying the original file you can also make a copy in your local TEXMF tree.

Related Question