Your PDF Has Ugly Scanner Borders? Crop It in 30s - No Upload, Free
Cropping PDF should not require uploading it to server you do not control. omnikitbolt PDF Crop runs entirely in browser - set per-side margins, preview result live, download cropped file without any upload. Here is how it works + what setCropBox actually does.

Table of Contents
Problem: most PDF crop tools upload your file
You have scanned contract or PDF exported from Word and it is surrounded by thick white margins. You search "crop PDF online" and land on iLovePDF, Smallpdf, or Adobe Acrobat Online. You drag file in. Progress bar fills. File uploads to their server, gets processed remotely, and you download result.
Cropping worked. But doc spent time on server you have no visibility into. Their privacy policy says files deleted within hour - you cannot verify that claim, and you cannot know whether file transited other systems during processing.
For bank statements, medical reports, signed contracts, anything containing personal / financial data, this is real concern. I built omnikitbolt PDF Crop to solve this by keeping entire crop process inside browser. No server involved at any point.
What "no upload" actually means
When you drop PDF into omnikitbolt PDF Crop, browser reads file with FileReader API - standard browser API for reading local files without network access. File stays in browser memory throughout. Processing uses pdf.js (Mozilla open-source PDF renderer, used to generate live preview) and pdf-lib (open-source JS lib for reading + writing PDF files). Output served as blob: URL and downloaded directly from memory. Zero network requests carry file.
How browser PDF cropping actually works
Understanding mechanism explains why this approach preserves quality while being fast + private. What happens under hood when you crop PDF in browser:
- pdf.js renders live preview of page. When you drop PDF, pdf.js reads + renders first page into canvas. Preview updates as you adjust margin values, so you can see exactly how much content remains visible before committing to crop.
- You enter per-side margin values. Top, right, bottom, left margin inputs independent. You can crop 20 points from left without touching any other side. Preview updates instantly.
- pdf-lib sets CropBox on each page. Critical step. pdf-lib reads existing page dimensions (MediaBox, which defines full physical page size), subtracts margin values from each side, and writes resulting rectangle as
CropBoxin page dictionary. Standard PDF property defined in ISO 32000. No content re-rendered, re-encoded, or touched. - Modified PDF offered for download. Updated PDF bytes stored as Blob in browser memory and downloaded directly. Nothing leaves device.
Key insight is PDF format has built-in, standardized way to specify visible display area of each page. pdf-lib simply writes that rectangle into file. No pixels touched, no content re-encoded - which is why text stays selectable + quality stays identical.
What setCropBox does - and what it does not do
PDF spec defines five page boundary boxes. Two you need to understand for cropping are:
MediaBox - full physical page
MediaBox defines full extent of page, including any content outside visible display area. Think of it as physical sheet of paper - it encompasses everything. When PDF viewer opens file, MediaBox sets max dimensions of page.
CropBox - visible display area
CropBox defines region of page that PDF viewers display + print. When you set CropBox smaller than MediaBox, viewer shows only CropBox area. Content between CropBox boundary and MediaBox boundary still present in file - simply hidden from viewer.
Practical implication: cropping via setCropBox is lossless. Original content preserved. If you open cropped PDF in viewer that exposes MediaBox (some professional tools do), you could still see hidden content. For most use cases - trimming scanner borders, removing excess whitespace for e-reader display, fitting content to tighter layout - this is exactly right tool. For full content deletion, you would need dedicated redaction tool like PDF Redact.
| Property | What it defines | Effect of cropping |
|---|---|---|
| MediaBox | Full physical page size (unchanged by cropping) | Not modified - original dimensions preserved |
| CropBox | Visible display area shown to viewer | Set to MediaBox minus margin values |
Per-side margin control: top, right, bottom, left
Most powerful aspect of omnikitbolt PDF Crop tool is independent control over each side of margin. Most online cropping tools offer only single "margin" value that applies equally to all four sides. Rarely what you need in practice.
Typical real-world scenarios
- Flatbed scanner border on three sides: scanner glass produces thin black border along top, left, bottom but not right. You need different values for each affected side.
- Bound document scan: book / folder scanned with wide binding margin on left. You want to trim only left side to balance layout without touching right margin.
- Header + footer removal: PDF with large header on top + footer at bottom that you want hidden. Crop only top + bottom, leaving left + right untouched.
- E-reader / tablet optimization: two-column academic paper with wide outer margins. Crop outer margins on both sides to maximize text area on screen. We cover this in depth in companion article How to Remove White Margins from PDF (No Upload).
Tool translates each margin input into corresponding change to CropBox coordinates. For standard A4 page (595 x 842 points), cropping 40 points from left + 20 from top produces CropBox of [40, 0, 595, 822] - precise arithmetic applied directly to page dictionary.
Text stays selectable - no rasterization
Some PDF crop tools work by rendering every page to pixel image (rasterization), cropping image, assembling new PDF from cropped images. Approach produces visually cropped PDF but destroys all structure:
- Text becomes image. You cannot select, copy, or search text in output PDF.
- Quality degrades. Re-encoding pages as JPEG introduces compression artifacts, especially on sharp text edges + fine line graphics.
- File size changes unpredictably. Rasterization can inflate 1MB text PDF to 5MB or more, depending on page resolution + JPEG quality settings used by tool.
omnikitbolt PDF Crop does none of these things. pdf-lib modifies only CropBox entry in page dictionary. Page content stream completely untouched. After cropping:
- Text still selectable + copyable
- Doc still searchable (Cmd+F / Ctrl+F)
- Images remain at original resolution + quality
- Vector graphics stay crisp at any zoom
- Hyperlinks remain active
- File size essentially unchanged
Crop your PDF margins in browser, no upload
No upload, no rasterization, no quality loss. Text stays selectable. Per-side margin control. Live preview via pdf.js. Free, no signup.
Open PDF Crop, FreeHow to crop PDF without uploading, step by step
Full process takes under minute for most docs:
- Go to omnikitbolt.com/tools/crop-pdf in Chrome, Safari, Firefox, Edge. No account.
- Drop PDF onto dropzone or click to browse. pdf.js renders live preview of first page. You will see current page with existing margins, so you have reference point before making any adjustments.
- Enter crop values for each side. Type amount to remove from top, right, bottom, left. Values in points by default (1 point = 1/72 inch; A4 page is 595 x 842 pt). Preview updates as you type.
- Review preview. Confirm visible area looks correct and no important content being cut off. Adjust margin values if needed.
- Click Crop PDF. pdf-lib sets CropBox on every page with margin values you entered. Applied uniformly across all pages in doc.
- Download result. Cropped PDF served from browser memory as Blob. No network request occurs.
When you need to crop PDF: common scenarios
PDF cropping comes up in handful of recurring workflows. Most common ones:
Removing scanner borders from scanned docs
Flatbed scanners almost always capture thin black / gray border around doc - edge of scan bed. Border irrelevant + distracting. Cropping few points from each side removes it cleanly, producing borderless scan. Per-side control essential here because border rarely perfectly uniform.
Preparing PDFs for e-reader / tablet reading
Academic papers, technical reports, book chapters exported as PDFs often have wide margins designed for A4 / Letter paper. On e-reader / tablet, those margins consume screen space + force text to render smaller. Cropping margins - especially on academic two-column layouts with wide outer margins - significantly increases readable text size. See full guide at How to Remove White Margins from PDF (No Upload).
Cropping print-ready PDF before screen sharing
Print-ready PDFs include bleed + slug areas - extra space outside trim edge used during printing. When sharing PDFs for review / presentation, those areas look unprofessional on screen. Cropping to TrimBox area (actual intended page size) removes bleed + slug without affecting any content.
Hiding header / footer before sharing
If PDF has prominent header with org name or footer with internal doc codes that should not be visible in shared version, cropping top / bottom margin is fast way to hide them. Keep in mind setCropBox hides rather than deletes - if complete removal required, use PDF Redact instead.
Matching non-standard crop for slide deck export
Presentation tools sometimes export slides with additional white space around slide area - especially when exporting to PDF from Keynote, Google Slides, LibreOffice Impress. Cropping those borders makes slides fill page correctly when viewed / re-imported.
Browser vs upload PDF cropping: honest comparison
Objective comparison of two approaches across dimensions that matter most:
| Dimension | Upload-based (iLovePDF, Smallpdf, Adobe Online) | Browser-based (omnikitbolt) |
|---|---|---|
| Privacy | File uploaded to remote server. You trust their security + deletion policies. | File never leaves device. Verifiable via browser Network inspector. |
| Text selectability after cropping | Depends on tool. Some rasterize pages (text becomes image). Good tools set CropBox. | Always preserved. pdf-lib only sets CropBox - no rasterization, ever. |
| Per-side margin control | Varies. Many offer only single symmetric margin value. | Yes. Independent top, right, bottom, left inputs. |
| File size change after cropping | May increase / decrease significantly if tool rasterizes pages. | Essentially zero change. Only CropBox dictionary entry updated. |
| Live preview before cropping | Varies. Some require uploading + processing to see result. | Yes. pdf.js renders live preview that updates as you type margin values. |
| File size limits | Free plans typically cap at 5-25MB. Larger files need subscription. | Limited by device memory. No artificial cap. No server involved. |
| Signup required | Often required beyond basic free use. | No account required. |
How to verify no upload happens
You do not have to take my word for it. Confirm yourself in under 2 mins:
- Open DevTools. Press F12 (Win/Linux) or Cmd+Opt+I (Mac) in browser. On Safari, enable Develop menu first in Settings → Advanced.
- Go to Network tab. Click Network in DevTools. Clear any existing entries.
- Drop PDF, adjust margins, click Crop PDF. Watch Network panel as live preview renders + as you click Download.
- Observe: no outgoing requests carrying file. Only network activity is initial page load (JS + CSS assets). During preview rendering, margin adjustments, download, Network panel shows zero outgoing requests. PDF processed + served entirely from browser memory.
Standard method used by privacy researchers to audit browser-based tools. Conclusive: if no network request carries PDF bytes, file stayed on device.
Your PDF stays on device
No upload, no account, no server. Per-side margin control. Live preview. Text stays selectable. CropBox set by pdf-lib on every page. Free.
Other PDF tools that run in browser
omnikitbolt offers full suite of browser-based PDF tools. All run locally with no upload + no server processing:
- PDF Crop: set CropBox margins per side - top, right, bottom, left. Live preview. Text stays selectable. No upload.
- PDF Compress: reduce file size by rasterizing + re-encoding page images. Best for scanned docs + image-heavy PDFs. Read full guide at Compress a PDF online without uploading it.
- PDF Rotate: fix sideways pages permanently. Rotation written into page Rotate property - not viewer-level display setting. Read full guide at Rotate a PDF online without uploading it.
- Remove PDF Pages: delete any page / range of pages from PDF. Thumbnail grid + range input. Read full guide at Delete pages from a PDF online free.
- PDF Organize: reorder pages by dragging thumbnails, then download rearranged PDF. No upload.
All your PDF needs, all in-browser
Crop, compress, rotate, remove pages, organize PDFs without uploading them anywhere. All tools run locally in browser via pdf.js + pdf-lib. No server. No signup. No watermark.
FAQ
Does cropping PDF online mean uploading it to server?
With most tools, yes. iLovePDF, Smallpdf, Adobe Acrobat Online, similar services upload PDF to servers for processing. With omnikitbolt PDF Crop, no. Cropping runs entirely in browser with pdf.js (to render live preview) and pdf-lib (to set CropBox on each page). File never leaves device. Verify yourself by opening Network inspector (F12) and watching for outgoing requests while tool processes file. You will see none.
What does setCropBox actually do in pdf-lib? Is cropped content deleted?
CropBox is PDF standard property that tells viewers which region of page to display. When pdf-lib sets CropBox, it narrows visible area of page to rectangle you defined - content outside rectangle hidden but still present in file. This is both strength + limitation. Strength: operation lossless, instant, does not re-encode any content. Text stays selectable. Limitation: cropped content not permanently deleted - just hidden. If you need to permanently remove content from margins, you would need full redaction workflow (different from cropping).
Can I crop different amounts from different sides of PDF?
Yes. Tool provides four independent margin inputs: top, right, bottom, left. You can crop 20mm from left and 5mm from top while leaving right + bottom untouched. Per-side control useful for scanned docs that have uneven margins from scanner, or for PDFs where binding margin only on one side.
Does cropping affect text selectability / image quality?
No. omnikitbolt PDF Crop uses pdf-lib to set CropBox - it does not rasterize page / re-render anything. Page content stream completely untouched. After cropping, text in remaining visible area still selectable + searchable, images remain at original resolution + quality, vector graphics stay crisp at any zoom, hyperlinks remain active. Only visible display area changes.
Does file size change after cropping PDF?
No, or negligibly. Setting CropBox via pdf-lib only adds / updates small dictionary entry in each page object. Page content itself not changed, re-encoded, or compressed. Output file size essentially identical to input. Key advantage over rasterization-based approaches, where every page gets re-encoded as JPEG image and file size can change dramatically.
Will cropping apply to every page in PDF?
Yes. omnikitbolt PDF Crop applies same margin values to every page in doc. CropBox set page by page with pdf-lib, but margin values you enter applied uniformly across all pages. Correct behavior for most common use case: removing consistent scanner borders / white margins that appear on every page of scanned doc.
Can I crop password-protected PDF?
No. pdf-lib cannot modify password-protected / encrypted PDF without owner password, because file content encrypted and library cannot write changes to page structure. If PDF protected, you need to unlock it first. omnikitbolt offers separate PDF Unlock tool that removes owner-level restrictions from PDFs you are authorized to modify.
How do I verify no upload happens when I crop PDF?
Open DevTools (F12 Win/Linux, Cmd+Opt+I Mac), click Network tab, then drop PDF into omnikitbolt PDF Crop tool and proceed through margin entry + download. Watch network panel throughout. You will see requests for static page assets (JS, CSS) when tool loads. During preview rendering, margin adjustments, download step, you will see zero outgoing requests. PDF read by FileReader API, processed entirely in memory by pdf-lib, output served via blob URL - no network call made at any point.