[XeTeX] Support request for /Rotate in pdf
Hironobu Yamashita
h.y.acetaminophen at gmail.com
Thu Nov 12 11:35:39 CET 2015
Dear Andreas,
> With help of -shell-escape I think this can be done in a
> graphicx driver:
Thank you for the good suggestion. But pdfinfo can be found both
in poppler and xpdf, and the outputs are different from each
other; thus parsing info file would be difficult.
And now I've come up with another macro-based workaround.
I can use rungs for "pre-treatment" when -shell-escape is allowed:
\immediate\write18{rungs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE
-dAutoRotatePages=/None -sOutputFile=\basename-pdf-rotated-to.pdf
-c .setpdfwrite -f \basename.pdf}
This will convert \basename.pdf to \basename-pdf-rotate-to.pdf.
Then I can include \basename-pdf-rotate-to.pdf without worrying
about /Rotate parameter. Of course this could be done in the driver
file without notice and interaction of the user.
The disadvantage of method above can be:
- slow conversion process
- shell-escape required
- dependency on macros (LaTeX, plain TeX, etc)
Some of these problems may be reduced by running rungs only when
/Rotate really exists in the pdf. Fortunately, extractbb can
examine the value of /Rotate; this may help reducing run of rungs.
However, it would be more helpful if /Rotate is supported in XeTeX
and xdvipdfmx natively. If not, is there any chance of adding rungs
to shell_escape_commands list? Any suggestions are appreciated.
Thanks,
Hironobu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20151112/861210e6/attachment.html>
More information about the XeTeX
mailing list