Crop PDF
Operator: Abdulla Al Fahad. How tools are built and checked
Crop PDF cuts the margins off the pages of a PDF. You can drag a box over a page view, type the Top, Right, Bottom and Left margins in millimetres or inches, or press Find margins automatically and let the tool look for the white space itself. The crop can apply to every page, to the page you are looking at, or to a list of pages such as 2-5, 8. It suits scans with a black scanner edge, slides exported with a wide border, and reports whose margins waste paper when printed. The page is rendered and the margins are measured in your browser tab, and the cropped copy is built on your device.
The thing to understand before you start is what a crop is in PDF terms. The tool does not cut anything out of the page. It sets a viewing window, called a CropBox, and readers display only what is inside it. The trimmed strip is still in the file. That is fine for tidying a layout and wrong for hiding something confidential. The result downloads as your file name with -cropped added.
Key features
- A draggable crop box over a single-page view, with Prev and Next buttons to move through the document and the area outside the box shaded.
- Margin inputs for Top, Right, Bottom and Left in millimetres (the default) or inches, which stay in step with the box.
- Scope options: Every page, This page, or These pages with a range such as 1-3, 7.
- Find margins automatically, which measures each in-scope page and takes the tightest margins common to all of them.
- An optional page size change that also shrinks the MediaBox and clears the print boxes, with a Reset button to return to no crop.
Crop box, media box and what is kept
Every PDF page has a MediaBox, the full sheet it was created on, and may have a CropBox that says which part a viewer should show. Crop PDF writes the CropBox for each page you target. If a page already had one, your margins are measured inside it, so cropping a second time trims further rather than starting over from the original sheet. The page content is not rewritten, so text stays selectable and searchable, and images are not re-encoded or resampled.
Margins are measured inwards from the edges of the page as you see it. That matters for rotated pages: a sideways scan saved on a portrait sheet carries a /Rotate entry, and the tool converts your Top, Left, Bottom and Right back into the page's own coordinate system before writing the box. A 20 mm Top margin therefore trims the top of what is on screen, whatever the page's internal orientation. Negative or empty margins count as zero, so a crop can never reach beyond the visible page.
The optional checkbox, Also change the page size, so printers and every app use the crop, goes further. It shrinks the MediaBox to the same rectangle and removes the TrimBox, BleedBox and ArtBox entries. Some print workflows, imposition software, image converters and page-counting tools read the MediaBox or the print boxes and ignore the CropBox, so without this option they would still see the original sheet. With it, they see the cropped page. It is off by default because it changes the stored page size.
How it works
The PDF is opened and each page in scope is read as the viewer shows it: the existing CropBox if there is one, turned by the /Rotate value. Your margins give a rectangle in that frame, which is mapped back to the page's own coordinates. Every page is checked against the half-inch minimum before anything is written, so a failed run never produces a half-cropped file.
The tool then sets the CropBox on each page. If the page size option is on, it also sets the MediaBox to the same box and deletes TrimBox, BleedBox and ArtBox. Auto-detect works separately in the page view: it draws each page onto a canvas, treats transparent areas as white paper, and counts any pixel with a channel below 245 as content. The bounding rectangle of those pixels becomes the margin.
Common use cases
- A bookkeeper scans a stack of receipts on an A4 flatbed. Each is a small slip in the corner of a big white page, and cropping every page to the slip so each receipt fills the screen when opened.
- A lecturer exports slides to PDF with thick borders and wants them to fill a phone screen, so the same margins come off every page in one pass.
- A researcher has a journal article with wide margins and a running header, and trims the left and top margins so the text is larger on an e-reader.
- A designer sends a proof to a print shop and needs it to be a true 210 by 280 mm, so the crop is applied with the page size change switched on.
- An office worker has a book scan where only pages 12 to 40 carry a dark scanner edge, and crops just those with the These pages option.
How to use this tool
- Add the PDF and use Prev and Next to find a representative page. Choose the scope first, because it decides which pages Find margins automatically measures.
- Press Find margins automatically, or drag the handles of the box, or type the four margins. Check the shaded area covers only what you want to lose.
- Decide whether to tick Also change the page size, so printers and every app use the crop. Leave it off for on-screen reading; turn it on for printing or for software that ignores the CropBox.
- Press Crop PDF and download the file with -cropped in its name. Open it once and flip to the widest page to confirm nothing was clipped.
Example
Settings for a 9-page scanned report (A4, portrait)
Scope: Every page
Unit: mm
Top 12 Right 8 Bottom 12 Left 8
Also change the page size, so printers and every app use the crop: onResult
report-cropped.pdf
Pages 1-9 each get a CropBox 16 mm narrower and 24 mm shorter
than the page the reader sees (210 x 297 mm becomes 194 x 273 mm).
MediaBox now equals the CropBox; TrimBox, BleedBox and ArtBox are removed.
Content outside the box is still inside the file.Tips for best results
- Start with Find margins automatically, then nudge the box by hand. It renders each page in scope at half scale, takes the smallest margin found across all of them, and leaves 6 pt of padding so nothing sits right on the new edge.
- Switch the unit to in if the print specification is in inches, and back to mm: the box stays where it is, only the numbers change.
- Use This page for a single odd page, such as a landscape insert, and Every page for a uniform book. Page-by-page cropping is easier when the page you are dragging on is the one you are cropping.
- If pages differ in size, auto-detect is safer than typed margins, because the typed values are applied identically to every page in scope.
- Keep an uncropped original. The crop can be undone in an editor, but a second pass of Crop PDF cannot widen the box beyond what is already stored as the page.
Common pitfalls
Cropping hides the trimmed area; it does not delete it. Anyone with a PDF editor can restore it, and text in the hidden strip can often still be selected or extracted. To remove content for good, run Redact PDF.
Auto-detect looks for non-white pixels, so faint scan noise, a grey shadow near the spine, or a pale background tint can count as content and stop it trimming. When the suggested margins look too small, drag the box by hand or type the margins.
Typed margins follow what the reader sees. On a page with a /Rotate entry, Top means the top of the displayed page, which may be a different edge in the file. This is deliberate, but it surprises people who read the numbers in another tool's raw coordinates.
A crop is refused if it would leave less than half an inch of the page in either direction. The check covers every page in scope before any is changed, so one narrow page can block the whole run.
Without the page size option, a viewer will show the crop but a printer driver or a converter that ignores the CropBox may still use the full sheet. If the cropped result prints oddly, run it again with that box ticked.
Common errors and how to fix them
- Those margins leave less than half an inch of page 1. Make them smaller.
- The remaining width or height of the named page would be under 36 pt. Reduce the margins, or switch Scope to This page or These pages if one small page is the cause. The number in the message is the first page that failed.
- No content was found on that page to crop around.
- Auto-detect saw only white or near-white pixels on that page. It is probably blank, or the content is lighter than the 245 cut-off. Pick a page with visible content or set the margins by hand.
- This PDF is password-protected. Open it with Unlock PDF first, then try again.
- Cropping has to read each page's boxes and rotation before it can write a new CropBox, and an encrypted file cannot be read until its password has been removed. Unlock PDF saves a readable copy; crop that one.
Best practices
- Preview the widest and the busiest page before you press Crop PDF, because the box you drew on page 1 applies to every page in scope.
- Tick the page size option when the file is headed for a printer, a prepress tool or an app that reports page dimensions; leave it off if you may want to restore the full sheet in an editor.
Why a scan stops auto-detect from trimming
Auto-detect is a pixel test, not an understanding of the page. A clean export from a word processor is pure white around the text, so the bounding box is tight and the result is exact. A flatbed scan is different: paper is rarely 255 white, and shadows, dust and compression noise can put a few pixels below the 245 threshold anywhere on the sheet. One speck near the corner is enough to hold a margin open.
Because the measurement takes the smallest margin across every page in scope, a single noisy page limits all the others. If that happens, drag the box by hand and let the margin numbers follow, or type them, rather than relying on the measurement.
Frequently asked questions
Does Crop PDF permanently remove the part I trim?
No. It marks the visible area and leaves the rest in the file, where a PDF editor can bring it back. For content that must disappear, use Redact PDF.
Why does my cropped PDF look uncropped in another program?
That program probably reads the MediaBox and ignores the CropBox. Run the crop again with Also change the page size, so printers and every app use the crop ticked, which makes the MediaBox match.
Will rotated pages be cropped on the wrong side?
No. Margins follow the page as it appears on screen, including its rotation, so Top is always the top edge you see.
Can I crop different pages by different amounts?
Not in one run: the margins apply equally to every page in scope. Crop the groups in turn, using This page or These pages, and feed each result into the next run.