6

I have a small file:

\documentclass{report}
\usepackage{graphicx}

\begin{document}

\begin{figure*}
\includegraphics{fig}
\end{figure*}

\end{document}

accompanied of a figure in PDF, that when processed by pdflatex and lualatex produces a fine PDF, but when processed by "xelatex" the figure is rendered upside down. The figure is at:

 https://www.dropbox.com/s/jv8plo9k58s8cnl/fig.pdf

Does anyone know the reason for that?

8
  • It's not graphicx or indeed LaTeX at all: one sees the same with a plain TeX test file such as\XeTeXpdffile fig.pdf\bye: I suspect the PDF itself is at fault.
    – Joseph Wright
    Sep 18, 2017 at 16:12
  • @JosephWright The PDF is produced with xelatex.
    – Paulo Ney
    Sep 18, 2017 at 16:14
  • Not according to the PDF properties!: /Creator (pdftk 2.02 - www.pdftk.com) /Producer (itext-paulo-155 \(itextpdf.sf.net-lowagie.com\))
    – Joseph Wright
    Sep 18, 2017 at 16:21
  • And it contains a /Rotate 180. Sep 18, 2017 at 16:24
  • 2
    Yes, but xdvipdfmx reports xdvipdfmx:warning: << /Rotate 180 >> found. (Not supported yet) Sep 18, 2017 at 16:35

1 Answer 1

9

This is an issue in (x)dvipdfmx: it does not support /Rotate 180. You won't see the warning with XeTeX unless you do the typesetting in two parts:

xelatex --no-pdf <test-file> && xdvipdfmx <test-file>.xdv

so perhaps it's easier to use dvipdfmx (with \usepakage[dvipdfmx]{graphicx}). In either case, running (x)dvipdfmx we get

warning: << /Rotate 180 >> found. (Not supported yet)

(extractbb also complains when using the dvipdfmx route: it is called during the latex run in that case.)


As commented by Hironobu YAMASHITA

In TeX Live r44953-44964 (August 2017), xe(la)tex and (x)dvipdfmx started support of /Rotate in PDF. Thus, no problem will happen in TeX Live 2018

1
  • 2
    In TeX Live r44963--44964 (August 2017), xe(la)tex and (x)dvipdfmx started support of /Rotate in PDF. Thus, no problem will happen in TeX Live 2018. Sep 23, 2017 at 7:40

You must log in to answer this question.

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