THE GEOMETRY OF A PDF

PDF page box checker

Find the physical page size your PDF describes. Inspect its page boxes, bleed and trim boundaries, then compare 100% size with a mathematical fit to A4 or US Letter.

Read the page, not the artwork.

Your PDF stays in this browser. The reader downloads only after you choose a file or load the sample. It reads page dictionaries in an isolated worker; it does not render artwork, run PDF scripts or send file bytes to a server.

Up to 25 MiB and 300 pages. Reading stops after 25 seconds. Encrypted or password-protected PDFs are not supported.

Worked reference: A4 trim with 3 mm bleed

The worked reference is visible below. No PDF reader has been loaded yet.

1 page in this document

Compare a mathematical print fit

Zero means the full mathematical sheet. It does not mean your printer can print borderlessly. Enter a known margin yourself; this tool cannot detect the printable area or driver settings.

SELECTED BOX AT 100%216 × 303 mm
MATHEMATICAL FIT97.222%

MediaBox does not fit at 100% inside a 210 × 297 mm mathematical A4 area. A proportional fit is 97.222%, producing 210 × 294.583 mm. No printer margin has been measured.

A FINISHED EDGE, A WIDER SHEET

Five boundaries. One page.

PDF page box geometry
Geometry only, shown in unrotated PDF coordinates. Reported width and height include Rotate and UserUnit. Coincident outlines are offset slightly to distinguish their line styles; that offset is not additional bleed.
  • MediaBox: solid
  • CropBox: long dash
  • TrimBox: dotted
  • BleedBox: dash-dot
  • ArtBox: fine dots

A boundary in a PDF is a declared rectangle. It cannot prove that background colour reaches the bleed edge, that text is safe from trimming or that a printer will honour that box.

Read the guide to PDF page boxes
Watch the PDF print-size demonstration

The dimensions behind the page.

Page 1. Rotate: 0° (default 0). UserUnit: 1 (default 1). Physical sizes below include both settings.

Raw rectangle coordinates and effective oriented dimensions. Raw coordinates use PDF default user-space units; millimetres and inches include UserUnit.
Page boxRaw [x₁, y₁, x₂, y₂]Effective width × height (mm)Effective width × height (in)Source
MediaBox[0, 0, 612.283, 858.898]216 × 3038.504 × 11.929page
CropBox[0, 0, 612.283, 858.898]216 × 3038.504 × 11.929page
TrimBox[8.504, 8.504, 603.78, 850.394]210 × 2978.268 × 11.693page
BleedBox[0, 0, 612.283, 858.898]216 × 3038.504 × 11.929page
ArtBox[0, 0, 612.283, 858.898]216 × 3038.504 × 11.929default CropBox

“Default” means a rectangle derived according to the PDF fallback rules, not an explicitly authored box. MediaBox, CropBox and Rotate may be inherited from the page tree. TrimBox, BleedBox, ArtBox and UserUnit are read from the page itself.

Geometry observations

  • No box-geometry warning was found. This does not certify the artwork, printing suitability or PDF/X conformance.

Worked example: A4 trim with 3 mm bleed

This is a synthetic mathematical specimen, not a physically printed test. Its MediaBox and CropBox are 216 × 303 mm. The TrimBox starts 3 mm inward from each edge, giving a finished 210 × 297 mm A4 rectangle. The BleedBox equals the MediaBox. No ArtBox is declared, so it defaults to CropBox.

Printing the whole MediaBox at 100% asks for 216 × 303 mm. Fitting that rectangle to a full A4 sheet uses min(210 ÷ 216, 297 ÷ 303) × 100 = 97.2222…%. The finished trim is reduced too. Selecting the A4 TrimBox instead gives 100% for this mathematical comparison, but an application may select a different box or apply its own scaling.

A PDF can therefore contain an A4 finished size and still describe a larger page. Check the PDF’s boxes alongside the application’s preview and a measured print calibration sheet.

Inspect the original authored specimens yourself: nominal A4 PDF, A4 trim with 3 mm bleed PDF and rotated PDF with UserUnit 2. These are synthetic examples with stated geometry, not printer measurements.

What each box tells you

MediaBox
The page’s physical medium boundary in PDF coordinates. It is required and can include bleed or printer’s marks around the finished piece.
CropBox
The clipping boundary used when a page is displayed or printed. When absent, it defaults to MediaBox. It does not by itself establish the finished trim.
TrimBox
The intended finished page after trimming. When absent, it defaults to CropBox; that default is not evidence that trim was explicitly set.
BleedBox
The production clipping boundary that can include extra material around the trim. When absent, it defaults to CropBox. A larger box does not prove that artwork fills it.
ArtBox
The intended extent of meaningful page content. When absent, it defaults to CropBox. This checker does not inspect the content inside it.

Coordinates, rotation and physical size

For a rectangle [x₁, y₁, x₂, y₂], unrotated width is |x₂ − x₁| and height is |y₂ − y₁|. The origin may be non-zero or negative. Reversed coordinate pairs are normalised and reported. Raw values stay visible for diagnosis.

Millimetres = coordinate distance × UserUnit × 25.4 ÷ 72. Inches use the same distance × UserUnit ÷ 72. UserUnit defaults to 1 and must be greater than zero and no greater than 75,000. It is not inherited. Rotate defaults to 0, may be inherited and must be a multiple of 90 degrees. Rotations of 90° or 270° swap the reported width and height.

The effective rectangle is the declared or default rectangle intersected with MediaBox. A box outside MediaBox, a box outside CropBox or a TrimBox outside BleedBox receives an observation. An invalid MediaBox or invalid unit/rotation leaves affected dimensions unavailable, rather than silently substituting a paper size.

For a chosen target sheet and equal margin m, available width = sheet width − 2m and available height = sheet height − 2m. Fit = min(available width ÷ box width, available height ÷ box height). The calculation preserves orientation and allows enlargement; it does not emulate every application’s “Fit” setting.

Scope, privacy and sources

This checker reads structural page geometry with pdf-lib. Reader library licence notices. File selection is local. PDF bytes are transferred to a browser worker, which is terminated after reading, when cleared or after the 25-second limit. The selected file is not uploaded, embedded in a viewer or passed to an external PDF service.

It does not inspect ink coverage, image resolution, fonts, colour separations, transparency, marks, annotations, content clipping or PDF/X compliance. It does not determine a printer’s usable area, change a file or certify readiness for a press.

Adobe’s explanation of PDF cropping and page boxes distinguishes crop, trim, bleed and art boundaries. The PDF Association’s specification archive provides the PDF specifications that define page dictionary inheritance, defaults, UserUnit and rotation. The synthetic example and fit calculations are Paper & Scale’s own geometry.

Keep things in proportion.

All print tools