Skip to content
Glossary · PDF

TrimBox

Dutch: TrimBox (schoongesneden formaat)

In short

The TrimBox is the box in a PDF that says how large the page will be once it has been trimmed. So it is the finished size of the printed product, not the size of the sheet it is printed on.

Four page boxes nested, with the TrimBox highlighted, and the result after trimming1 · the boxes in the PDFMediaBoxBleedBoxTrimBoxArtBoxInside the BleedBox,inside the MediaBox.2 · after trimmingfinished sizewhat the customer gets
The four boxes nest inside one another. Trimming happens on the TrimBox: everything outside it falls away, including the bleed that runs on to the BleedBox.

Why it exists

A page is rarely printed on a sheet exactly the size of the finished product. There has to be room around it for bleed, cut marks, a colour bar and the grip of the machine. So the sheet is larger than the product.

That raises a question: where exactly does the finished size sit inside that larger sheet? Someone opening the file only sees ink. The TrimBox answers that question inside the file itself, rather than in an email or over the phone.

The specification puts it like this: the trim box "defines the intended dimensions of the finished page after trimming". Intended, that is. The TrimBox is an instruction from whoever made the file, not a measurement taken afterwards.

In a Dutch print shop this is called the schoongesneden formaat, the clean-trimmed size. Order an A5 leaflet and 148 × 210 mm trimmed is exactly what you expect to hold. The TrimBox is where that measurement lives in the file.

Where you meet it

On delivery. A printer receiving a PDF reads the TrimBox to work out which product this is. If the finished size does not match the order, the file goes back.

In preflight. PitStop checks whether a TrimBox exists and whether it fits inside the other boxes. When the TrimBox is missing, the PDF falls back on the CropBox, and that is often the whole sheet.

In imposition. The imposition software places pages on the press sheet using the TrimBox. The specification says so explicitly: when building an imposition "the trim box specifies the positioning of the page's content within the imposition".

How it works

The TrimBox is a rectangle in the page dictionary of the PDF, holding four numbers: lower left x and y, upper right x and y. Those numbers are in default user space units, and such a unit is 1/72 inch by default.

If the file carries no TrimBox, the CropBox serves as its value. If that is missing too, the MediaBox does. So there is always an answer, but not always the answer you want: a forgotten TrimBox silently yields the size of the entire sheet.

If the TrimBox extends beyond the MediaBox, only the overlapping part counts. A processor has to treat the box as its intersection with the MediaBox.

What you see on screen is not the TrimBox. Acrobat shows the CropBox. A file that looks perfectly fine on screen can have a TrimBox that is half a centimetre out, or no TrimBox at all. You only see that once you display the boxes or run a preflight. So never judge a delivered file by eye.

Technical

The TrimBox lives in the page dictionary as /TrimBox [llx lly urx ury]. It is one of the five boxes a PDF page may carry: MediaBox, CropBox, BleedBox, TrimBox and ArtBox. Only the MediaBox is required.

A worked example for an A4 flyer with 3 mm bleed. The finished size is 210 × 297 mm, so the TrimBox is 210 × 297 mm. The BleedBox then becomes 216 × 303 mm, because 3 mm is added on four sides. The MediaBox is larger still, because the cut marks have to fit in as well.

PropertyValueStatus
Key in the PDF/TrimBoxverified
Typerectangle, four numbers in default user space unitsverified
Requiredno, optional since PDF 1.3verified
Default valuethe CropBoxverified
Unit1 unit = 1/72 inch, unless UserUnit says otherwise (PDF 1.6)verified
Outside the MediaBoxtreated as its intersection with the MediaBoxverified

In PDF/X

PDF/X sets hard requirements for the boxes. Every PDF/X page carries either an ArtBox or a TrimBox, but not both. The MediaBox is always required, a BleedBox is optional.

If a BleedBox is present, the TrimBox may not extend beyond it. If a CropBox is present, the TrimBox may not extend beyond that either. The CGATS application notes add that TrimBox is recommended in preference to ArtBox.

In our tools

PitStop carries a check called "Page box layout". Choose the press layout there and PitStop expects the MediaBox to be the outer box and the BleedBox to sit inside it. When the TrimBox is missing, PitStop can derive it from the first box that is present, in an order you set yourself.

Deriving is a stopgap, not a solution. A derived TrimBox is the software guessing at what the customer meant. Better to put an action on it that holds the file back, so the sender sets it properly.

  • BleedBox: the box the bleed runs out to, always equal to or larger than the TrimBox.
  • MediaBox: the box of the sheet itself, the only required box.
  • CropBox: what Acrobat displays, and the default value when the TrimBox is missing.
  • ArtBox: the box around the meaningful content; in PDF/X an alternative to the TrimBox, but not the preferred one.
  • Bleed: the ink that runs on past the trim line.

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.