ORGANIZE · @cantoo/pdf-lib v2.9

@cantoo/pdf-lib v2.9🔒 Zero Byte Upload

Crop PDF iconCrop PDF

Trim the visible margins around all PDF pages.

    HOW THIS TOOL WORKS LOCALLY

    Crop PDF: Technical Guide & Honest Limits

    Trim the visible margins around all PDF pages. Moves each page crop box inward by the margin you choose. The tool checks that the remaining width and height stay positive.

    Applies your chosen point margin uniformly around every page CropBox while enforcing positive remaining dimensions so pages never vanish.

    Cropping narrows visible boundaries only—it never deletes text clipped outside the margin; always use Redact PDF to sanitize confidential corners.

    Primary Example Workflow

    A margin of 20 points trims about 7 mm from each edge. Reopen the result and confirm no page numbers or text were clipped.

    Operational Limits to Check

    Cropping hides content rather than removing it. It is unsuitable for concealing personal data. Another editor may restore the original page boundaries.

    How to Use Crop PDF Locally

    1. Select a PDF.
    2. Enter the margin for each side.
    3. Crop and inspect visible bounds without treating them as secure removal.

    Tested example — 2026-11-02

    A 10-point margin changes the sample's 595-point page width to 575 points.

    Selected sample: sample.pdf (2421 bytes, 2 pages).

    Measured output: sample-cropped.pdf — 2481 bytes; 2 PDF pages.

    A 10-point margin changes the sample's 595-point page width to 575 points.
    Page 1 rendered from the actual automated sample PDF output; this is not a browser screenshot.

    Representative automated browser output snapshot. Always inspect your downloaded document carefully.

    Technical Reference

    ParameterCrop PDF Behavior
    Canonical Route/tools/crop-pdf
    Input Source.PDF document input
    Processing LocationLocal browser tab RAM (0 KB uploaded)
    Account / Fee100% Free, no login or watermark

    Frequently Asked Questions

    Does Crop PDF send my files to a remote server?

    No. Crop PDF processes your inputs directly in browser memory via JavaScript and WebAssembly. Verify 0 KB outbound file uploads anytime in DevTools.

    What happens if Crop PDF encounters an invalid or locked input?

    Crop PDF reports a clear diagnostic notice rather than producing a blank or misleading output file. Check file formats, passwords, and page bounds before retrying.

    How many PDF points equal 10 millimeters of margin trim?

    One inch equals 72 points (~25.4 mm), so 28 points trims roughly 1 cm (10 mm) from all four edges of every page.

    Verify zero-upload behavior in browser DevTools →