FileKit
All posts
·4 min read

How to Crop PDF Pages — Remove Margins and Trim Marks

Methods for cropping PDF pages, understanding MediaBox vs CropBox, and use cases from removing margins to trimming printer marks.

Why Crop a PDF?

PDF pages sometimes have oversized margins, printer marks, or unwanted borders. Cropping trims the visible area without altering the actual page content — like changing the window through which you view the page.

Cropping Methods

1. Browser-Based Cropping

FileKit's Crop PDF tool lets you specify how much to trim from each edge (top, bottom, left, right). The crop adjusts the page's visible boundary — no pixel data is destroyed, so the crop can be reversed with other tools. Processing happens entirely in your browser.

2. Adobe Acrobat

Edit PDF → Crop Pages gives you precise control with a visual crop box. You can set different crops for odd and even pages, choose specific page ranges, and enter exact measurements.

3. Command Line with qpdf

qpdf input.pdf --pages . 1-z -- output.pdf \ --overlay cropbox="0 0 400 600"

Command-line cropping typically involves modifying the MediaBox or CropBox values in the page dictionary. Tools like cpdf provide more intuitive crop commands.

Understanding PDF Page Boxes

  • MediaBox — defines the full physical page size, including printer marks and bleed areas
  • CropBox — defines the visible area when the PDF is displayed. Cropping tools modify this box.
  • TrimBox — defines the final page size after trimming in a print production workflow

Use Cases

  • Removing wide margins from scanned documents
  • Trimming printer crop marks from production PDFs
  • Standardising page sizes across a merged document
  • Cutting headers or footers from specific pages