PDF Optimization5 min readUpdated 2026-11-12

How PDF Compression Works: Lossless Stream Packing vs. Raster Compression

Shrinking a PDF without ruining readability depends on whether your PDF is already packed or consists of high-resolution page scans. Learn what each compression mode actually changes.

ED
ILOVEAIPDF Editorial Team
Tool Documentation & QA
Open Compress PDF

Why Some PDFs Are Huge While Others Hardly Shrink

A Word or Google Docs export containing mostly text is usually small unless it embeds high-resolution photographs. By contrast, documents scanned on a copier or assembled from smartphone photos can easily reach 10 to 40 MB.

If a PDF already uses Flate/JPEG compression cleanly, lossless stream repacking may shave off only a few kilobytes. Getting a large scan under a strict 2 MB portal limit usually requires lowering image resolution.

How Our Three Compression Modes Differ

In the Compress PDF workspace, you can choose between three distinct approaches:

Balanced Raster and Smallest Raster convert pages into flat JPEG images (up to 40 pages). Selectable text, hyperlinks, and fillable form fields will no longer be interactive in the output.
Mode in ToolHow It WorksText SelectabilityPage Cap & Best Use
Lossless OptimizationRepacks PDF object streams via pdf-lib without re-encoding imagesKeeps selectable text & crisp vectorsAll pages; best first pass on text/vector PDFs
Balanced Raster (150 DPI)Renders each page and saves it as 78% quality JPEG inside a new PDFFlattens text into images (no text selection)Up to 40 pages; best for heavy scans needing big size drops
Smallest Raster (96 DPI)Renders each page at lower resolution and 55% JPEG qualityFlattens text into images (softer small text)Up to 40 pages; strict portal caps when 150 DPI is still too large

Choosing the Right Mode for Your Document

Start with Lossless Optimization whenever you need selectable text, clickable links, or crisp fine print (such as resumes, tax forms, or legal agreements).

If your PDF is a multi-page photo scan and lossless mode barely changes its size, switch to Balanced Raster (150 DPI) and inspect the resulting download before submitting it.

Related Tool

Open Compress PDF

Try this workflow directly in your browser. Selected files stay in local memory without server uploads.

Frequently Asked Questions

Frequently Asked Questions

Find quick answers about functionality, security, and usage limits.

Many modern PDFs already use compressed object streams and JPEG images. Lossless repacking does not downsample images, so if scans make up 95% of the file size, try Balanced Raster (150 DPI).

More Guides