Sub topic 12
How a PDF records trim and bleed
This chapter assumes you can set up a document with bleed and a safe area, and that you know what trim size and bleed mean. It covers how a PDF stores that information, so you can confirm an export carried it through.
Why the page boxes matter
A PDF page does not remember "this is an A4 card with 3 mm bleed" as a note. It stores a set of rectangles called page boxes. Each box is defined by two corner points, measured in points (1 point is 1/72 inch). Printers and imposition software read these boxes to find where to cut and where the artwork ends.
If the boxes are missing or wrong, a RIP (the printer's raster image processor) or an imposition tool may guess. A wrong guess can trim off your artwork or show a white sliver at the edge.
The five boxes
| Box | What it describes |
|---|---|
| MediaBox | The full physical sheet the page is defined on. It must include everything, including marks. |
| CropBox | The area a viewer displays or prints. Often the same as the MediaBox. |
| BleedBox | The area the artwork is clipped to, which is the trim size plus bleed. |
| TrimBox | The final cut size. This is the box you most want to be correct. |
| ArtBox | The area of meaningful content. Rarely used in print. |
The boxes nest. The TrimBox sits inside the BleedBox, and the BleedBox sits inside the MediaBox.
What an export produces
The boxes you get depend on the export options.
- Bleed without marks. The MediaBox usually equals the BleedBox. The TrimBox is set inset from it by the bleed amount.
- Bleed with crop marks. The MediaBox grows larger, because marks sit outside the bleed. The BleedBox and TrimBox stay the same size as before.
- No bleed. The TrimBox equals the MediaBox. The printer has nothing to cut into.
Take A4 with 3 mm bleed. The TrimBox is 210 × 297 mm. The BleedBox is 216 × 303 mm.
Checking the boxes
You do not need to trust the export dialog. The pdfinfo tool from poppler-utils prints every box.
pdfinfo -box flyer.pdfThe output includes lines like these, in points:
MediaBox: 0.00 0.00 612.28 858.90
CropBox: 0.00 0.00 612.28 858.90
BleedBox: 0.00 0.00 612.28 858.90
TrimBox: 8.50 8.50 603.78 850.40
ArtBox: 0.00 0.00 612.28 858.90Each line gives the lower-left x and y, then the upper-right x and y. Here the TrimBox is inset 8.5 points (about 3 mm) on every side. That inset is the bleed.
You can check the numbers with a short script.
POINTS_PER_MM = 72 / 25.4
def box_size_mm(x0, y0, x1, y1):
return (x1 - x0) / POINTS_PER_MM, (y1 - y0) / POINTS_PER_MM
bleed_box = (0, 0, 612.28, 858.90)
trim_box = (8.50, 8.50, 603.78, 850.40)
print([round(v, 1) for v in box_size_mm(*bleed_box)]) # [216.0, 303.0]
print([round(v, 1) for v in box_size_mm(*trim_box)]) # [210.0, 297.0]Common problems
- TrimBox missing.
pdfinfoshows the TrimBox equal to the MediaBox. Re-export with bleed enabled, and use a preset that writes a TrimBox. - Bleed value is zero. The BleedBox equals the TrimBox. The document was set up without bleed, so you must add it in document setup and extend the artwork.
- Artwork stops at the trim. The boxes are correct, but the background does not reach the BleedBox. The boxes only describe the geometry. You still have to extend the art.
Exercise
A PDF export with crop marks reports a MediaBox of 228 × 315 mm, a BleedBox of 216 × 303 mm, and a TrimBox of 210 × 297 mm. How much bleed does each side have, and why is the MediaBox larger than the BleedBox?
Show answer
The bleed is (216 − 210) / 2 = 3 mm on each side. The MediaBox is larger because crop marks and registration marks are drawn outside the bleed, so the sheet must be big enough to hold them.