How PDF Compression Works
By ToolzHive · · 4 min read
You export a PDF, go to email it, and it is 40 MB. You run it through a compressor and it comes out at 3 MB — sometimes looking identical, sometimes looking like it was faxed in 1998. Understanding why tells you how to shrink a file safely and when a small file is simply impossible without a visible cost.
Where the size actually comes from
A PDF is a container. Its size is almost never the text — text is tiny. The weight comes from a few predictable places:
- Images. By far the biggest contributor. A single phone photo dropped into a document can be several megabytes on its own. A PDF full of scanned pages is really a stack of large images.
- Embedded fonts. PDFs embed the fonts they use so the document looks the same everywhere. Full font files, especially for non-Latin scripts, add up.
- Duplicated and unused objects. Editing software often leaves behind old revisions, unused images and redundant data inside the file.
- Vector graphics and form data. Usually small, occasionally not.
If your PDF is large, it is almost certainly the images. That is both the problem and the opportunity.
Lossless vs lossy: the fundamental choice
There are two kinds of compression, and the difference decides everything.
Lossless compression makes the file smaller without throwing any information away — it just stores the same data more efficiently, the way a ZIP file does. Run it and the document is byte-for-byte identical in appearance. The catch: lossless savings on an already-compressed photo are small, often only a few percent.
Lossy compression makes images smaller by discarding detail the eye is least likely to notice — the same idea as a JPEG. This is where the big reductions come from, and also where quality can suffer. Push it too far and you get blocky skies, smeared text in scans, and halos around edges.
A good compressor does both: it strips the lossless waste (unused objects, bloated structure, duplicate images) for free, then applies lossy image compression that you can dial up or down.
How to shrink a PDF without wrecking it
The right amount of compression depends entirely on what the PDF is for.
- Screen and email. Images only need to look good at screen resolution — around 150 dpi is plenty. You can usually cut a photo-heavy PDF by 80–90% with no visible loss on a monitor.
- Printing. Print needs more detail, typically 300 dpi. Compress for screen and send it to a professional printer and the result will look soft.
- Scanned text documents. These respond extremely well to compression because a page of black text on white has very little real information. Keep resolution high enough that the text stays crisp, but you can be aggressive with colour depth.
The practical method: start with a moderate setting, open the result, and zoom in on the most detailed image and the smallest text. If they hold up, try a stronger setting. If they break, step back. Compression is a dial, not a switch.
When a smaller file is impossible
Some PDFs cannot shrink much, and it helps to recognise them:
- A document that is already optimised — running it through a second compressor gains almost nothing and can degrade it.
- A file that is mostly high-resolution photos you need at full quality. There is no free lunch; smaller means fewer pixels.
- Vector-heavy documents that are already small. If a 50-page report is 500 KB, it is text and vectors, and there is little to compress.
If you need both small and sharp, the better move is often to resize or re-export the source images before building the PDF, rather than over-compressing afterwards.
Privacy matters too
PDFs often contain sensitive material — contracts, medical letters, financial statements. Prefer a tool that compresses in your browser, so the file never leaves your device, over one that uploads your document to a server you do not control. For anything confidential, that is not a nicety; it is the requirement.
The short version
- The size is the images; everything else is rounding error.
- Lossless shrinking is free and safe but limited. Lossy shrinking is powerful but has a cost.
- Match the resolution to the destination: ~150 dpi for screen, ~300 dpi for print.
- Always inspect the result at the detail that matters before you send it.
A PDF compressor that lets you choose the quality level — and does the work locally — gives you the big, safe wins (stripped waste plus right-sized images) without gambling your document's legibility on a single "compress" button.