Back to All Guides
PDF Optimization6 min read2026-08-21

The Ultimate Guide to PDF Compression: How Vector & Bitmap Optimization Works

Understand the mechanics of PDF file size reduction: bitmap downsampling, stream compression, font subsetting, and structural metadata stripping.

## Why Do PDF Files Become So Large?

PDF (Portable Document Format) files often swell to dozens or hundreds of megabytes. This file size bloat is usually caused by: - **Uncompressed High-DPI Scans:** Scanned document pages stored as uncompressed TIFF or raw bitmap streams. - **Embedded Full-Font Libraries:** Embedding entire TrueType or OpenType font files rather than subsetting only used glyphs. - **Redundant Object Revisions:** Multiple edit iterations appending discarded object dictionaries to the PDF trailer.


Bitmap Images vs Vector Objects

A PDF file consists of two primary content types: - **Vector Graphics & Text:** Mathematical line coordinates, curves, and font character references. Vector elements take minimal disk space (a few kilobytes) and remain infinitely crisp at any zoom level. - **Bitmap Raster Images:** JPEG, PNG, or uncompressed pixel matrices. High-resolution photos (e.g. 300 DPI or 600 DPI) consume 95%+ of total PDF file size.


Image Resampling & DPI Resolution

The primary method for shrinking PDF file size is **image downsampling**: - **300 DPI (Dots Per Inch):** High-resolution quality required for commercial offset printing. - **150 DPI:** Recommended standard for office printing, email attachments, and web documentation. - **96 DPI:** Compact screen quality for fast mobile viewing.

By resampling 300 DPI image streams down to 150 DPI and applying modern JPEG/WebP compression algorithms, PDF file size can be reduced by 50% to 80% without noticeable loss of text readability.


Flate / Deflate Stream Compression

In addition to image downsampling, PDF optimizers compress internal content streams using **Flate (Deflate)** compression algorithms. Uncompressed text instructions, page coordinates, and font metrics are compressed into binary streams, further reducing file footprints.


Best Practices for Email & Upload Portals

When preparing PDFs for email attachments or job portals: 1. Always keep vector text layers intact rather than converting pages to raster images. 2. Select 150 DPI resolution for a balanced compromise between image sharpness and low file size. 3. Decrypt or unlock password protection before running optimization routines.

Frequently Asked Questions

Will compressing a PDF blur text?
No. Vector text layers and native fonts are preserved. Only embedded raster images are resampled.
Why didn't my text-only PDF shrink significantly?
PDFs composed purely of vector text and fonts are already lightweight and contain no heavy image streams to downsample.