Sub topic 6
Trim, bleed and page boxes
This chapter explains how a PDF records the final size of a printed piece and the extra artwork around it. It assumes you can set up a document in a layout application such as InDesign or Affinity Publisher. It also assumes you know millimeters and points and can open a PDF's properties in Acrobat or a similar viewer. Chapter 2 covered getting the printer's specifications, and the numbers used here come from those specifications.
Why the page needs more than one size
Presses do not print on the exact finished size. The printer prints on a larger sheet, then cuts it down. Cutting is never perfectly exact, and the blade can drift by a millimeter or more. If your background color stops exactly at the cut line, a drifted blade leaves a thin white sliver at the edge.
You prevent that with three areas:
- Trim: the final size after cutting, for example 148 × 210 mm for A5.
- Bleed: artwork that extends past the trim edge, usually 3 mm, so the cut falls inside printed color.
- Safety margin (also called live area): an inner zone, usually 3 to 5 mm inside the trim, where text and logos should stay so they are not cut off.
A PDF stores these areas as named rectangles called page boxes. The printer's software reads them to position the cut and to impose pages onto sheets.
The five page boxes
Every PDF page can carry five boxes. Each is a rectangle written as four numbers (left, bottom, right, top) in points, where 1 point is 1/72 inch, or about 0.3528 mm.
| Box | Meaning | What the printer needs |
|---|---|---|
| MediaBox | The full physical sheet or page area, including marks | Must contain all other boxes |
| CropBox | The region a viewer displays or prints | Defaults to the MediaBox |
| BleedBox | Trim plus the bleed amount | Must contain the TrimBox |
| TrimBox | The finished size after cutting | Required in PDF/X (or an ArtBox) |
| ArtBox | The extent of meaningful content | Rarely used in print |
If a box is absent, the PDF specification gives it a default. The CropBox defaults to the MediaBox, and the BleedBox, TrimBox and ArtBox default to the CropBox. A missing TrimBox therefore does not look like an error in a viewer. The page looks fine, but the printer's software has no trim size.
The PDF/X standards require that either a TrimBox or an ArtBox is present, and that not both are. In practice you set the TrimBox. The BleedBox must lie inside the MediaBox and must contain the TrimBox.
A worked example: A5 with 3 mm bleed
Suppose the printer wants an A5 flyer (148 × 210 mm) with 3 mm bleed and crop marks. Marks sit outside the bleed, so the MediaBox must be larger than the bleed area. Here we give 11 mm of space on every side of the trim.
The Python script below converts these millimeter values into points and prints the three boxes.
MM = 72 / 25.4 # points per millimeter
def boxes(trim_w_mm, trim_h_mm, bleed_mm=3, margin_mm=11):
m = margin_mm * MM # space from the sheet edge to the trim
b = bleed_mm * MM
w, h = trim_w_mm * MM, trim_h_mm * MM
return {
"MediaBox": (0, 0, 2 * m + w, 2 * m + h),
"BleedBox": (m - b, m - b, m + w + b, m + h + b),
"TrimBox": (m, m, m + w, m + h),
}
for name, box in boxes(148, 210).items():
print(f"{name:9}", " ".join(f"{v:7.2f}" for v in box))It prints:
MediaBox 0.00 0.00 481.89 657.64
BleedBox 22.68 22.68 459.21 634.96
TrimBox 31.18 31.18 450.71 626.46The TrimBox width is 450.71 − 31.18 = 419.53 pt, which is 148 mm. The BleedBox is 8.50 pt (3 mm) larger on each side. Your layout application calculates these numbers when you export. The point of the script is that you can check them yourself.
Setting bleed in the layout application
Set the bleed when you create the document, not at export time. If you add it later, the artwork will not extend into it.
- In the document setup dialog, enter the printer's bleed value on all four sides. In InDesign this is the Bleed field under Document Setup. Affinity Publisher has a Bleed field in the same kind of dialog.
- Extend backgrounds, photos and color fills to the bleed edge. Drag the object edges out to the bleed guide. Do not stretch the object's contents, because that distorts the image.
- Keep text and logos inside the safety margin.
- At export, turn on the option that includes the document bleed. In InDesign this is "Use Document Bleed Settings" on the Marks and Bleeds page. In Affinity Publisher it is "Include bleed" in the export options.
- Turn on crop marks only if the printer asks for them. Many printers impose from the TrimBox and do not want marks. Marks need the larger MediaBox shown above.
Facing pages in a book need bleed only on the outer edges. The inner edge at the spine is bound, not cut. A saddle-stitched or perfect-bound book can also need extra spine allowances, so ask the printer.
Printer marks and the slug
Printer marks are the small guides outside the trim.
- Crop marks show where to cut. Their offset from the trim should be at least as large as the bleed. Otherwise the marks print inside the bleed area and can show after cutting.
- Registration marks let the press operator align the color plates.
- Color bars and page information sit in the slug, an extra area outside the bleed that holds job notes.
Marks and slug are the reason the MediaBox is larger than the BleedBox. Without marks, you can set the MediaBox equal to the BleedBox and the file stays simpler.
Checking the boxes
The command pdfinfo -box prints the boxes of the first page. Add -f 1 -l 5 to print boxes for pages 1 to 5.
pdfinfo -box job.pdfFor the A5 example the boxes should read:
Page size: 481.89 x 657.64 pts
MediaBox: 0.00 0.00 481.89 657.64
CropBox: 0.00 0.00 481.89 657.64
BleedBox: 22.68 22.68 459.21 634.96
TrimBox: 31.18 31.18 450.71 626.46
ArtBox: 0.00 0.00 481.89 657.64Read it like this:
- The TrimBox size should equal the trim size in the printer's specification. Here it is 419.53 × 595.28 pt, which is 148 × 210 mm.
- The BleedBox should extend the TrimBox by the bleed on every side.
- The viewer-side tools fill in defaults for absent boxes. An ArtBox equal to the MediaBox, as above, usually means the ArtBox is absent, not that it was set. Open the page properties in a preflight tool to see which boxes are really defined.
Common errors
- No bleed in the file. Preflight reports "BleedBox equals TrimBox" or "content does not extend past trim". Fix it in the source document: set the bleed, extend the artwork, and export again.
- Bleed set, artwork not extended. The BleedBox is correct but the background stops at the trim line. A preflight tool cannot always detect this, so look at the exported PDF with the BleedBox displayed. Acrobat can show page boxes in its preferences.
- Text outside the safety margin. Text within 3 mm of the trim risks being cut. Move it inward.
- Wrong page size. An A5 job exported as A4 with scaling has a TrimBox that does not match the specification. Check the number, not the preview.
- Different page sizes by accident. Check all pages, not only the first. Use
-fand-l, or a preflight profile that checks every page. - Marks inside the bleed. The crop mark offset is smaller than the bleed. Increase the offset.
- Rotated pages. A page with a rotation entry displays turned, but the boxes are still stored in the unrotated coordinate system. Tell the printer if you rotate pages on purpose.
Summary
The TrimBox says where to cut, and the BleedBox says how much extra artwork exists beyond the cut. The MediaBox must be large enough for both and for any marks. Set the bleed in the document, extend the artwork into it, and confirm the result with pdfinfo -box. Preflight profiles in the next chapters check the same boxes automatically.
Exercise
A printer wants a 210 × 297 mm A4 page with 5 mm bleed and no marks. What size is the BleedBox in millimeters, and how large is the TrimBox in points (rounded to two decimals)?
Show answer
The BleedBox is 220 × 307 mm, because 5 mm is added on each of the two sides in each direction (210 + 10 and 297 + 10). The TrimBox is 210 mm × 72/25.4 = 595.28 pt wide and 297 mm × 72/25.4 = 841.89 pt high.
Exercise
Your exported PDF looks correct in a viewer, but pdfinfo -box prints the same numbers for MediaBox, CropBox, BleedBox, TrimBox and ArtBox. What is probably wrong, and where do you fix it?
Show answer
The file probably has no TrimBox or BleedBox, so the defaults all fall back to the MediaBox. The bleed was not set in the document or was not included at export. Set the bleed in the document setup, extend the artwork into it, enable the "include bleed" export option, and export again.