PDF Page Cropper
Crop selected PDF pages by exact margins in your browser, preserve hidden page content, and verify every rewritten CropBox before download.{{ summaryTitle }}
{{ summaryLine }}
Cropped PDF
{{ chartExportStatus }}
The chart renderer is unavailable. Exact dimensions remain available in the CropBox ledger.
{{ ledgerExportStatus }}
| Page | Rotation | Basis | Lower-left | Visible size | Copy |
|---|---|---|---|---|---|
| {{ row.page_label }} | {{ row.rotation_label }} | {{ row.basis_label }} | {{ formatPoints(row.x) }}, {{ formatPoints(row.y) }} pt | {{ formatPoints(row.visual_width) }} × {{ formatPoints(row.visual_height) }} pt |
Verification review
{{ row.detail }}
A PDF page can have several rectangular boundaries. The MediaBox describes the full physical page, while the CropBox describes the area a viewer or printer should normally display. Cropping a PDF by changing CropBox hides material outside the visible rectangle without cutting that material out of the file.
This distinction is useful for removing scanner borders, focusing a handout on its main content, matching visible page sizes, or preparing pages for a layout workflow. It also creates an important privacy limit: text, images, annotations, or marks outside the crop may remain recoverable because the page content stream and MediaBox are unchanged.
| Page boundary | Role | Effect of this crop |
|---|---|---|
| MediaBox | The full page extent in PDF coordinates | Never rewritten. |
| Current CropBox | The page's existing visible or printable area | May be used as the starting rectangle. |
| New CropBox | The visible rectangle after the selected margins are removed | Written only on selected pages. |
| Page content | Text, paths, images, and other drawing instructions | Retained even when it falls outside the new CropBox. |
Margins are measured from the visual top, right, bottom, and left edges. PDF coordinates, however, are stored in default page space, and rotated pages do not have the same visual-to-coordinate edge mapping as unrotated pages. A correct crop must account for 90°, 180°, and 270° rotation before writing the new rectangle.
Cropping cannot repair a damaged or locked PDF, remove confidential hidden content, or guarantee borderless printing. For permanent redaction, use a redaction process that removes the underlying content and then verify the saved file independently.
How to Use This Tool:
Choose whether the new margins should start from the full physical page or from the area already visible in the source PDF.
- Select one unlocked PDF up to 20 MB and 300 pages. Use all, individual page numbers, or comma-separated ascending ranges such as 1,3-5.
- Choose MediaBox to measure from the full page or Current CropBox to crop further from the existing visible area.
- Enter non-negative top, right, bottom, and left margins in points, millimetres, or inches. Reduce the margins if any selected page would become smaller than 3 × 3 points.
- Crop the PDF, then review visible dimensions and the CropBox ledger for rotated or differently sized pages.
- Download only after verification confirms the original page count and rotation and matches every selected page's saved CropBox to the reviewed plan.
Interpreting Results:
The visible width and height describe how the page appears after rotation is considered. The ledger coordinates describe the stored CropBox in PDF points. Those numbers may appear swapped or mapped to different edges on a rotated page even when the visual crop is correct.
Untouched pages keep their existing page boxes. Selected pages receive a new CropBox, while every page keeps its original MediaBox and content. A successful verification confirms geometry and document structure; it does not prove that hidden content was removed or that every viewer will apply printing options identically.
Technical Details:
PDF page coordinates use points, with 72 points per inch. Millimetres are converted using 72 ÷ 25.4 points per millimetre. The chosen basis is either MediaBox or the intersection of the current CropBox with MediaBox, which prevents an invalid existing crop from extending beyond the physical page.
Formula Core:
After visual margins are mapped to the stored page edges, the new rectangle is:
The subscript b denotes the selected basis rectangle. T, R, B, and L are the margins after rotation mapping. Geometry is retained to six decimal places, while ordinary display values are shortened to avoid false precision.
Rule Core:
| Rotation | Stored top | Stored right | Stored bottom | Stored left |
|---|---|---|---|---|
| 0° | Visual top | Visual right | Visual bottom | Visual left |
| 90° | Visual right | Visual bottom | Visual left | Visual top |
| 180° | Visual bottom | Visual left | Visual top | Visual right |
| 270° | Visual left | Visual top | Visual right | Visual bottom |
Page ranges are one-based, deduplicated, and sorted. Only 0°, 90°, 180°, and 270° rotations are accepted. After saving, the PDF is reopened; page count and rotations must remain unchanged, and each selected CropBox coordinate must match the plan within 0.001 point. Output larger than 30 MB is rejected.
Privacy Notes:
The PDF is processed in the browser and is not uploaded or retained. Cropping is not redaction: content outside the visible rectangle remains inside the downloaded file and may be exposed by another PDF editor or by resetting the CropBox.
References:
- Page cropping and page boundaries, Adobe Acrobat SDK documentation.
- PDFPage box and rotation API, pdf-lib.