{{ summaryTitle }}
{{ summaryValue }}

{{ summaryLine }}

Scope{{ resultReady ? `${computation.values.selected_page_count} pages` : params.page_scope }} Basis{{ resultReady ? computation.values.basis_label : basisDisplay }} PrivacyLocal only
PDF crop setup
{{ sourceFile ? sourceFile.name : 'Drop one PDF here' }} {{ sourceFile ? fileMeta : 'or browse for a local document' }}
One unlocked .pdf, up to 20 MB and 300 pages. Nothing is uploaded or retained.
Use all, page numbers, or comma-separated ascending ranges such as 1,3-5.
The tool writes CropBox only. It never changes MediaBox or deletes page content.
Remove this distance from the visual {{ edge.id }} edge.

{{ workflowMessage }}

.pdf
Optional. The neutral blank default derives a safe name from the source PDF.
Cropped PDF
{{ artifactLabel }}
Selected pages{{ computation.values.selected_page_count }}
Unchanged pages{{ computation.values.untouched_page_count }}
Smallest width{{ formatPoints(computation.values.minimum_visible_width) }} pt
Smallest height{{ formatPoints(computation.values.minimum_visible_height) }} pt
Download cropped PDFSHA-256 {{ outputSha256.slice(0, 12) }}…

{{ chartExportStatus }}

The chart renderer is unavailable. Exact dimensions remain available in the CropBox ledger.

{{ ledgerExportStatus }}

PageRotationBasisLower-leftVisible sizeCopy
{{ 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.status === 'pass' ? 'Passed' : 'Review' }}
{{ row.label }}

{{ 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.

PDF page boxes and their role in cropping
Page boundaryRoleEffect of this crop
MediaBoxThe full page extent in PDF coordinatesNever rewritten.
Current CropBoxThe page's existing visible or printable areaMay be used as the starting rectangle.
New CropBoxThe visible rectangle after the selected margins are removedWritten only on selected pages.
Page contentText, paths, images, and other drawing instructionsRetained 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.

  1. 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.
  2. Choose MediaBox to measure from the full page or Current CropBox to crop further from the existing visible area.
  3. 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.
  4. Crop the PDF, then review visible dimensions and the CropBox ledger for rotated or differently sized pages.
  5. 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:

xnew=xb+L ynew=yb+B Wnew=WbLR Hnew=HbBT

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:

Visual margin mapping for rotated PDF pages
RotationStored topStored rightStored bottomStored left
Visual topVisual rightVisual bottomVisual left
90°Visual rightVisual bottomVisual leftVisual top
180°Visual bottomVisual leftVisual topVisual right
270°Visual leftVisual topVisual rightVisual 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: