[XeTeX] XeTeXpdffile media box etc

Heiko Oberdiek heiko.oberdiek at googlemail.com
Thu Sep 9 14:45:07 CEST 2010


On Thu, Sep 09, 2010 at 01:32:39PM +0200, Paul Isambert wrote:

> 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.

s/pdfpageattr(s)/pdfpage(s)attr/

> > * 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.

Yes:
  \pdfpagesattr: /CropBox
  \pdfpageattr: /CropBox, /BleedBox, /TrimBox, /ArtBox

> 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.

The version rev. 1675 of 2007-01-25 uses /CropBox.

Yours sincerely
  Heiko Oberdiek


More information about the XeTeX mailing list