[XeTeX] Support request for /Rotate in pdf

Andreas Matthias andreas.matthias at gmail.com
Wed Nov 11 20:31:31 CET 2015

Hironobu Yamashita wrote:

> [ supporting /Rotate ]

> Is there any chance for XeTeX and xdvipdfmx to overcome
> the difficulty?

If you don't want to patch the source code of xetex/xdvipdfmx you
could try a pure macro solution, which of course would not be
independent of LaTeX, plain TeX, ...

With help of -shell-escape I think this can be done in a graphicx

1) Use pdfinfo to extract this information from a pdf:

   \immediate\write18{pdfinfo -f 1 -l 99 fileA.pdf > fileA.info}

2) Read in and parse this info file with TeX. Maybe simplify
   this info file with another tool (sed or whatever) first.

3) Instruct the graphicx driver to add `angle=-90' or whatever
   is necessary depending on the info file.

This could be done in the driver file without notice and interaction
of the user.


More information about the XeTeX mailing list