PDF Compression Guide: Reduce File Size Without Losing Quality
Why PDF Compression Matters
A 50 MB PDF might take minutes to email, eat up cloud storage quotas, and frustrate collaborators. Yet many users assume compression means blurry images and unreadable text. The reality is more nuanced. Modern PDF compression techniques can reduce file size by 70% or more while preserving perfect text clarity. The key is understanding what makes PDFs large and applying the right technique for your use case.
What Makes PDFs Large
PDFs contain several categories of data that contribute to file size. Images are typically the biggest contributor — a single high-resolution photograph at 600 DPI can occupy 5–10 MB. Embedded fonts are another major factor; every font file included in the PDF adds 50 KB to several megabytes depending on character coverage. Layer on metadata, annotations, form fields, and redundant object data from repeated saves, and file sizes balloon quickly.
Lossless vs Lossy Compression
PDF compression falls into two categories. Lossless compression reduces file size by eliminating redundant data without changing any pixels or characters — like zipping a file. It works well for text-heavy PDFs with simple graphics but gives limited gains for image-heavy documents. Lossy compression reduces quality in exchange for smaller file sizes. For images, this means re-encoding JPEGs at a lower quality setting or converting to a more efficient format like JPEG 2000.
The right choice depends on your document. A legal contract with only text compresses fine with lossless methods. A scanned magazine with photographs needs lossy image compression for meaningful size reduction.
Image Downsampling
Image downsampling is the single most effective compression technique. Many PDFs contain images far beyond what's needed for screen viewing. A 300 DPI image is perfect for print, but a 96 DPI display can't show that detail — the extra pixels are wasted. Downsampling reduces the resolution of images to match the intended output. ILikePdf's Medium preset downsamples to 150 DPI, which looks excellent on screen and reduces file size by 40–60%.
Font Subsetting
When you embed a font in a PDF, you typically embed every character across multiple weights and styles. A single font like Open Sans Regular might contain 1,000+ glyphs including Latin, Cyrillic, and Greek — even if your document only uses 80 ASCII characters. Font subsetting extracts only the characters actually used in the document, reducing the embedded font from hundreds of kilobytes to often under 10 KB.
Compression Presets: Light, Medium, Heavy
ILikePdf offers three presets that combine these techniques at different aggressiveness levels:
| Preset | Image Resolution | Image Quality | Font Subsetting | Typical Reduction |
|---|---|---|---|---|
| Light | 300 DPI | 92% | Yes | 20–35% |
| Medium | 150 DPI | 82% | Yes | 40–60% |
| Heavy | 72 DPI | 65% | Yes | 60–80% |
Light is ideal for documents destined for print or professional presentation where absolute image fidelity matters. Medium works for most business use cases — email attachments, document sharing, and archival. Heavy is best for web uploads, email attachments with strict size limits, or documents where only the text content matters.
Text vs Image-Heavy PDFs
Text-heavy PDFs — contracts, reports, academic papers — benefit most from font subsetting and object stream compression. With these techniques, a 5 MB text PDF might shrink to under 1 MB. Image-heavy PDFs — scanned books, photo albums, brochures — need image downsampling and quality reduction. A 100 MB scanned document can drop to 25 MB with Heavy compression while remaining fully readable.
ILikePdf automatically detects whether a PDF is text-heavy or image-heavy and applies the most effective strategy for each preset. The WASM-based Ghostscript engine analyzes the document structure and allocates the compression budget where it has the most impact.