UGLYPEAR AI completes its business upgrade: High-Performance Document Compression × RAG Data Engineering PlatformLearn about the New Business →

Why Your PDF Won't Compress (And When That's Normal)

Few things are as satisfying as watching a bloated file slim down — and few things as confusing as a PDF that refuses to budge. If you've ever dragged a document into a compressor, watched the progress bar crawl, and ended up with a file almost the same size, you've met the first two myths of document compression in real life.

The instinct is to blame the tool. But the more useful answer is almost always about the file itself, and about a number most people never think to ask for: how much redundancy was in there to begin with?

Compression chases redundancy, not size

Shannon's information theory gives the cleanest definition. Any part of a dataset that can be predicted from its context is redundancy. Compression doesn't destroy information; it re-encodes the predictable parts with shorter codes, approaching the data's "entropy" floor — the theoretical minimum size for that specific content.

So a compression ratio is not an absolute score you can compare across tools like a benchmark. It's a proportion of redundancy removed. A tool that reports "90% compression" usually achieved it on a specific, redundancy-rich sample. Put a different file in front of it and the number may collapse, not because the engine got worse, but because the new file had far less to give.

Already-near-the-floor formats

Some formats are born lean. JPEG, MP4, and ZIP are already compression artifacts — they sit close to their own entropy floor. A PDF whose embedded images were already optimized inherits that leanness. Try to compress such a file again and you're squeezing a sponge that's already been wrung out. There is almost no room left, and that is completely normal.

This is the trap of the "higher ratio is always better" mindset. It treats compression like a strength contest between tools, when in reality the ceiling is set by the source material. The right question was never "which tool is strongest?" but "for my kind of file, how much redundancy is actually present?"

The other side: thin substrates

Documents differ far more than most people assume. An unoptimized PDF, Office file, or scan often hides large redundancy inside its size: the same company logo or font embedded dozens of times instead of referenced once; screenshots and scans stored at resolutions well beyond what any display needs; edit history, redundant structure trees, and hidden thumbnails quietly occupying space.

Strip that redundancy and you routinely remove 60 to 80 percent. Reverse the situation — an image already compressed, a container already packaged — and there is simply little left to remove, so refusing to shrink is the expected behavior.

That reframes the second myth, "a stubborn file means a weak tool." Most of the time a file that won't compress is a file with a thin substrate. The engine is fine; the input just didn't have much water in it.

How to read a stubborn PDF

When a PDF barely moves, two explanations cover most cases:

  1. Its embedded images are already optimized and near the entropy floor.
  2. Its size is dominated by text structure and vector graphics that must stay lossless — there is little redundancy to trade away.

Neither is a failure. Both are the file telling you it was already close to its natural minimum.

What this means for your workflow

The practical takeaway is to stop celebrating raw ratio numbers and start judging tools by how they handle the redundant parts of a document — the repeated objects, the oversized images, the embedded assets that could be re-encoded without touching the text. A pipeline that separates those layers, for instance one that re-encodes embedded images while keeping structure lossless, is what turns a "90% on samples" claim into consistent results on your own files.

For more engineering notes on file handling and local-first thinking, see https://www.uglypear.com/blog/ .