LaTeX で PDF 画像が表示されないとき

環境

  • TeXLive 2015 (2015.20160320-1ubuntu0.1)
  • dvipdfmx (Version 20150315)

状況

Excel Office 365 で出力した PDF を PDF 画像として \includegraphics で読み込むと,LaTeX で生成された PDF に画像が表示されない (空白になる).

以下のような出力がある:

dvipdfmx:warning: Version of PDF file (1.7) is newer than version limit specification.
dvipdfmx:warning: pdf_open: Not a PDF 1.[1-5] file.
dvipdfmx:warning: pdf: image inclusion failed for "./1b.pdf".
dvipdfmx:warning: Could not find image resource...
dvipdfmx:warning: Interpreting special command epdf (pdf:) failed.
dvipdfmx:warning: >> at page="2" position="(170.079, 567.02)" (in PDF)
dvipdfmx:warning: >> xxx "pdf:epdf bbox 0 0 729 516 clip 0 width 256.07481pt (./1b.pdf) "

直し方

dvipdfmx に引数を与えて PDF 1.7 を明示的に指定する (-V 7).僕は latexmk を使っているので ~/.latexmkrc を編集.

#!/usr/bin/env perl
$latex = 'platex -8bit -kanji=utf8 -shell-escape -guess-input-enc -synctex=1 -interaction=nonstopmode %S';
$dvipdf = 'dvipdfmx -V 7 %S';
                    ~~~~ <- add this option