Skip to content
Glossary · PDF

MediaBox

Dutch: MediaBox (fysiek paginaformaat)

In short

The MediaBox is the canvas the content of a PDF page sits on. A PDF cannot do without it: it is the only required box, and effectively nothing exists outside it.

Four page boxes nested with the MediaBox highlighted, and the sheet with printing marks outside the bleed1 · the boxes in the PDFMediaBoxBleedBoxTrimBoxArtBoxThe outermost box.The rest fits inside.2 · what else has to fitcut marks and colour barsit outside the BleedBoxbut inside the MediaBox
The MediaBox is the outermost box. Everything the printer needs, from bleed to cut marks and colour bar, has to fit inside it.

Why it exists

A PDF page has to end up somewhere: a sheet of paper, a plate, film. That medium has a size, and the PDF has to state it, otherwise a RIP does not know how large an image to build.

That is why the MediaBox is the only required box. The other four are optional and fall back on a default value. The MediaBox has no default, because there is nothing left to fall back on.

The specification adds something you notice in practice: content falling outside this boundary may safely be discarded without affecting the meaning of the file. Whatever lies outside the MediaBox effectively does not exist.

So think of the MediaBox not as one of five boxes but as the canvas the other four are drawn on. That canvas need not be a single page: it can just as well be a press sheet carrying a whole imposition, with the TrimBoxes of the individual pages sitting inside it.

Where you meet it

In every PDF, because every page has one. When somebody says "it is an A4", they usually mean the MediaBox, or the CropBox that Acrobat displays.

When building a press sheet. The MediaBox has to be large enough for the bleed and for the printing marks beyond it: cut marks, registration marks, colour bar, and often a line of text with the job details.

On large formats such as banners and signage. There you run into the upper size limit, and the unit the MediaBox is expressed in suddenly matters.

How it works

The MediaBox lives in the page dictionary and is inheritable: if it is not on the page itself, the value from a higher node in the page tree applies. One line at the top of the document can therefore set the size of every page.

The four numbers are in default user space units of 1/72 inch. An A4 of 210 × 297 mm works out at roughly 595 × 842 units, and those are the numbers you find in most PDFs.

Since PDF 1.6 the unit itself can be enlarged with UserUnit. That is the route to exceeding the maximum page size, because that limit is expressed in units and not in millimetres.

Large enough is not the same as right. A common delivery is an A4 design on an A4 MediaBox, leaving no room for the bleed. The file looks fine, but there is not a millimetre of space for cut marks or bleed. So always check the MediaBox together with the TrimBox: the difference between the two is the room the printer has.

Technical

The MediaBox lives in the page dictionary as /MediaBox [llx lly urx ury]. It is required and inheritable. The crop, bleed, trim and art boxes should not extend beyond it; if they do, a processor treats the box as its intersection with the MediaBox.

The recommended limits are in the implementation limits of the specification: a minimum of 3 × 3 units and a maximum of 14,400 × 14,400 units. At the fixed unit of 1/72 inch that works out at roughly 0.04 × 0.04 inch up to 200 × 200 inch, or a little over five metres square.

PropertyValueStatus
Key in the PDF/MediaBoxverified
Typerectangle, four numbers in default user space unitsverified
Requiredyes, and inheritable through the page treeverified
Default valuenone; there is nothing to fall back onverified
Recommended minimum3 × 3 unitsverified
Recommended maximum14,400 × 14,400 units, that is 200 × 200 inchverified
Content outside itmay be discarded without affecting the meaningverified

In PDF/X

The MediaBox is required for every PDF file, and PDF/X changes nothing there. What PDF/X adds concerns the other boxes: every page carries an ArtBox or a TrimBox, but not both, and a BleedBox is optional.

In practice that means the MediaBox is your working area. Everything PDF/X wants outside the TrimBox or BleedBox, such as a control strip, still has to fit inside the MediaBox.

In our tools

In PitStop's press layout the MediaBox is the outer box, with the BleedBox inside it or equal to it. Under that layout there should be no crop box, or it should equal the MediaBox.

Enlarging the MediaBox does not move the content along with it: the origin stays where it was. So work out where the page ends up, or use an action that centres the box around the existing content.

  • TrimBox: the finished size inside this box.
  • BleedBox: the bleed, which also has to fit inside the MediaBox.
  • CropBox: what Acrobat displays; equal to the MediaBox by default.
  • Press sheet: the physical sheet the MediaBox is the digital counterpart of.

Sources

Last updated · checked by GrafiStore

Back to the glossary

Never miss an update?

Get the latest tips on workflow automation straight to your inbox.

By subscribing you agree to our privacy policy.