[XeTeX] [DVIPDFMx] supporting trimbox, &c. when making a .pdf
William Adams
will.adams at frycomm.com
Wed Jul 30 14:16:19 CEST 2008
On Jul 30, 2008, at 8:08 AM, Alexander Grahn wrote:
> Not quite, sorry. /AtBeginShipout seems to forget the first page.
>
> An explicit \special{...} right before \begin{document} does the
> trick:
Perfect! Thank you!
\documentclass{minimal}
\usepackage[paperwidth=630bp,paperheight=810bp]{geometry}
\usepackage{atbegshi}
\AtBeginShipout{\special{pdf: put @thispage <</TrimBox [9.0 9.0 621.0
801.0]>>}}
\pagestyle{empty}
\special{pdf: put @thispage <</TrimBox [9.0 9.0 621.0 801.0]>>}
\begin{document}
Test
\newpage
Test
\end{document}
For the curious on the XeTeX list, this also works w/ xdv2pdf.
Thanks!
William
--
William Adams
senior graphic designer
Fry Communications
More information about the XeTeX
mailing list