[pdftex] MediaBox? (was: Cannot get \includegraphics to work)

Otfried Cheong otfried at cs.uu.nl
Thu Jun 14 16:02:39 CEST 2001


Martin wrote:
 > 
 > On 2001-06-13 13:08:34 +0200, Heiko Oberdiek wrote:
 > > On 13 Jun 2001, Claus Tondering wrote:
 > > 
 > > >    \usepackage[pdftex]{graphics}
 > > >    \includegraphics[1cm,2cm][10cm,10cm]{xx.pdf}
 > > 
 > > PDF does not know a BoundingBox. With PDF the MediaBox
 > > is used. For example, a pdf file with the image without
 > > margins and the correct MediaBox can be generated from
 > > a eps file with correct BoundingBox via epstopdf.
 > 
 > Wouldn't it make more sense to use the ArtBox? We are "placing
 > the content of a page in another application" (p. 526f of pdfref
 > 1.3), aren't we?

Actually, pdftex already uses the CropBox, not the MediaBox, when
including PDF graphics.  Only when no CropBox is defined does it fall
back on the MediaBox.

Have you tried a recent pdftex version with Illustrator?  Or does
Illustrator not write a CropBox?  If so, which boxes does it write:

 ( ) MediaBox
 ( ) CropBox
 ( ) BleedBox
 ( ) TrimBox
 ( ) ArtBox
 
Lots of choice here :-)

Otfried





More information about the pdftex mailing list