DEV Community

Cover image for That 50MB PDF You're Trying to Email? It Could Be 3MB.
zippic
zippic

Posted on

That 50MB PDF You're Trying to Email? It Could Be 3MB.

Last week I tried to send a scanned contract over email. 47MB. Gmail's attachment limit is 25MB. The client's upload portal capped at 10MB. I ended up splitting it into five parts like it was 2004.

The file was 40 pages of mostly text with a few scanned signatures. There was no reason for it to be 47MB — except that whoever scanned it saved every page as a full-resolution image with zero compression.

Why PDFs get so fat

Most bloated PDFs come from the same source: scanned pages or exported slides where images were embedded at far higher resolution than anyone will ever view. A scanned page at 600 DPI looks identical to one at 150 DPI on screen, but takes 4x the space. Multiply by 40 pages and you're emailing a small movie.

The traditional fix is Adobe Acrobat's "Reduce File Size" — if you have a subscription. Or one of those free online PDF compressors, where you upload your contract (with signatures, account numbers, whatever) to a stranger's server and hope for the best.

I wasn't comfortable with either option for client documents.

Compress it where it already is

PDF compression is just image recompression plus metadata cleanup — the kind of thing a browser can do locally with WebAssembly. No server needed, which means your documents never leave your machine.

Here's what I do now:

  1. Open ZipPic's document compressor — free, runs entirely in the browser, no signup.
  2. Drop in the PDF. It handles the parsing locally.
  3. Pick a compression level. For screen reading and email, the middle setting is usually plenty — my 47MB contract came out at 3.1MB with no visible difference.
  4. Download the result. Nothing was uploaded anywhere.

That 3.1MB file sailed through Gmail and the client portal without a second thought.

The files you should never upload

Here's the thing I keep coming back to: the documents that most need compressing are exactly the ones you least want to upload. Contracts, financial statements, medical records, unreleased specs — the "please compress this 80MB PDF" request almost always involves something sensitive.

We've normalized uploading these to random free tools because there wasn't a convenient alternative. Now there is. Your browser is fast enough to do it locally, and the result is identical.

Next time a PDF won't fit through email, try compressing it without the upload step first. Your documents — and whoever's waiting on them — will thank you.

Top comments (0)