[XeTeX] XeTeXpdffile media box etc

Paul Isambert zappathustra at free.fr
Thu Sep 9 13:32:39 CEST 2010


Selon Heiko Oberdiek <heiko.oberdiek at googlemail.com>:

> On Thu, Sep 09, 2010 at 09:03:55AM +0200, Paul Isambert wrote:
>
> > \pdfpagesattr{
> >   /CropBox [llx lly urx ury]
> >   /MediaBox ...
> >   ...
> > }
>
> NO, don't add /MediaBox. It's set by pdfTeX and can be configured
> by \pdfpagewidth and \pdfpageheight.
>
> The other boxes can be set this way (or using \pdfpageattr).
> However dealing with \pdfpageattr(s) is very nasty in general.
> * Previous contents should be included.
> * Setting the same key twice should be avoided.

The idea is to produce a test file so Will can try including it in another
document to test the options, not to do anything meaningful with \pdfpageattr,
which indeed is a pain in the, errrr, head. Actually that's the s-less version I
meant (\pdfpageattr, not \pdfpagesattr); the PDF Reference doesn't flag the
Bleed-, Trim- and ArtBox as inheritable, so I guess using \pdfpagesattr won't
work.

I didn't know about MediaBox, but it makes sense -- even though the pdfTeX
manual gives /MediaBox as an example of an attribute in \pdfpagesattr.

Best,
Paul


More information about the XeTeX mailing list