[DVIPDFMx] supporting trimbox, &c. when making a .pdf

Alexander Grahn A.Grahn at fzd.de
Wed Jul 30 20:54:03 KST 2008


On Wed, Jul 30, 2008 at 07:42:41AM -0400, William Adams wrote:
> I'm afraid it's not working for me.... I tried it w/ memoir as well as this 
> minimal example:
>
> %!TEX TS-program = xelatex
> \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}
>
> \begin{document}
> Test
> \end{document}
>
> Is there a particular version something that I should have?
>
> William
You are right, it doesn't seem to work for your one-page example. But
for a two-page document it works:

\begin{document}
Test
\newpage
Test
\end{document}

There is a /TrimBox [...] entry in every Page object.

Alexander



More information about the dvipdfmx mailing list