

Learn professional PDF compression techniques that reduce file size by 70-90% while maintaining quality. Perfect for documents, scans, and presentations.
How to Compress PDFs Without Losing Quality
PDF files can quickly balloon to 10MB, 50MB, or even larger - making them impossible to email and slow to download. This guide shows you how to compress PDFs by 70-90% while maintaining visual quality.
Why PDFs Get So Large
Understanding the problem helps solve it:
- Uncompressed images - Photos embedded at full resolution
- Multiple versions - Edited PDFs store change history
- Embedded fonts - Complete font files for small text
- High DPI scans - 600 DPI when 300 DPI is enough
- Unnecessary metadata - Hidden data and thumbnails
Quick Size Reduction Guide
| Original Type | Typical Size | After Compression | Method |
|---|---|---|---|
| Scanned document | 25 MB | 3 MB (88% savings) | Image optimization |
| Photo-heavy PDF | 50 MB | 8 MB (84% savings) | Image downsampling |
| Text document | 5 MB | 800 KB (84% savings) | Font subsetting |
| Presentation | 30 MB | 5 MB (83% savings) | Image + font optimization |
Method 1: Optimize Images (Biggest Impact)
Images are usually 80-90% of PDF file size.
Desktop Tools
Adobe Acrobat Pro:
1. File โ Save As Other โ Reduced Size PDF
2. Or: File โ Optimize PDF
- Downsample images to 150-300 DPI
- JPEG quality: 80-85%
- Remove unused resources
Preview (Mac):
1. File โ Export
2. Quartz Filter โ Reduce File Size
Note: Can over-compress. Test results!
Command Line (Advanced)
Ghostscript (most powerful):
# High quality (300 DPI images)
gs -sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/ebook \
-dNOPAUSE -dQUIET -dBATCH \
-sOutputFile=output.pdf input.pdf
# Medium quality (150 DPI images)
gs -sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/screen \
-dNOPAUSE -dQUIET -dBATCH \
-sOutputFile=output.pdf input.pdf
Settings explained:
/screen- 72 DPI (presentations)/ebook- 150 DPI (digital reading)/printer- 300 DPI (print-ready)/prepress- 300 DPI (professional printing)
Method 2: Remove Unnecessary Content
PDFs often contain hidden bloat:
What to Remove
- Page thumbnails - 50-200KB each
- Bookmarks - Usually small, but can add up
- Form fields - If no longer needed
- Comments/annotations - From review process
- Metadata - Author, keywords, creation software
- Embedded JavaScript - Often unused
- Hidden layers - From design files
Using Adobe Acrobat
Tools โ Optimize PDF โ Advanced Optimization:
โ Discard objects:
โ Page thumbnails
โ Embedded print settings
โ Hidden layer content
โ Form actions
โ Clean up:
โ Remove invalid bookmarks
โ Remove unreferenced named destinations
โ Optimize page structure
Method 3: Font Optimization
Embedded fonts can add 500KB-2MB per font.
Font Subsetting
Only include characters actually used:
Adobe Acrobat:
Preferences โ Convert To PDF โ Font Settings
โ Subset embedded fonts when % used is less than: 100%
Impact: Full font (1.2MB) โ Subset (45KB)
Font Strategy
- Subset fonts if using < 50% of characters
- Embed only what's used for small documents
- Use system fonts for large documents (Arial, Times)
Method 4: Downsample Images
Reduce image resolution without noticeable quality loss:
Recommended DPI Settings
| Use Case | DPI | File Size | Quality |
|---|---|---|---|
| Screen viewing | 72-96 | Smallest | Good for most |
| Digital documents | 150 | Small | Recommended |
| Print-ready | 300 | Medium | Ideal for printing |
| Professional print | 600 | Large | Rarely needed |
Manual Downsampling
# Extract images from PDF
pdfimages -all input.pdf images/
# Compress each image
for img in images/*; do
convert "$img" -quality 85 -resize "2000x2000>" "compressed/$img"
done
# Rebuild PDF with compressed images
Method 5: Use PDF Compression Tools
Online Tools (Easy)
- Automatic optimization
- Maintains quality
- Batch processing
- No installation needed
SmallPDF, ILovePDF (Free with limits)
- Good for quick compression
- Limited daily use
- Some quality loss at highest compression
Desktop Tools (Control)
Adobe Acrobat Pro ($239/year)
- Most control over settings
- Professional results
- Batch processing
PDFtk (Free, open-source)
# Compress and linearize
pdftk input.pdf output output.pdf compress
OCRmyPDF (Free, for scanned documents)
# Optimize scanned PDF
ocrmypdf --optimize 3 \
--jpeg-quality 85 \
input.pdf output.pdf
Special Case: Scanned Documents
Scanned PDFs are often 10-50MB because they're just images.
Optimization Strategy
Re-scan at lower DPI
- 300 DPI for text (not 600)
- Grayscale for black & white documents
- Use "Document" mode, not "Photo"
Apply OCR
- Converts images to searchable text
- Dramatically reduces file size
- Makes PDF searchable and copy-paste friendly
Use monochrome for text-only
# Convert to black & white gs -sDEVICE=pdfwrite \ -dCompatibilityLevel=1.4 \ -dAutoFilterColorImages=false \ -dColorImageFilter=/FlateEncode \ -dGrayImageFilter=/FlateEncode \ -dNOPAUSE -dQUIET -dBATCH \ -sOutputFile=bw-output.pdf input.pdf
Real example:
- Scanned contract (600 DPI color): 45 MB
- After OCR (300 DPI grayscale): 3 MB (93% reduction)
- After optimization: 1.2 MB (97% reduction!)
Compression Settings Comparison
Testing on a 25MB PDF with photos and text:
| Setting | Size | Reduction | Quality | Best For |
|---|---|---|---|---|
| Original | 25 MB | - | Perfect | Archive |
| Low compression | 18 MB | 28% | Excellent | Printing |
| Medium | 6 MB | 76% | Very good | General use |
| High | 2 MB | 92% | Good | Email/web |
| Maximum | 800 KB | 97% | Fair | Quick sharing |
Recommendation: Medium compression (75-85% reduction) for most cases.
Batch Compression
Processing multiple PDFs:
Using Ghostscript Script
#!/bin/bash
for pdf in *.pdf; do
gs -sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/ebook \
-dNOPAUSE -dQUIET -dBATCH \
-sOutputFile="compressed_${pdf}" "$pdf"
done
Using Python (PyPDF2)
import PyPDF2
from pathlib import Path
for pdf_file in Path('.').glob('*.pdf'):
writer = PyPDF2.PdfWriter()
reader = PyPDF2.PdfReader(str(pdf_file))
for page in reader.pages:
page.compress_content_streams()
writer.add_page(page)
with open(f'compressed_{pdf_file.name}', 'wb') as output:
writer.write(output)
Common Mistakes to Avoid
- Over-compression - Quality below 75 JPEG becomes noticeable
- Wrong DPI - 72 DPI for print documents looks pixelated
- Removing fonts - Makes PDF unreadable on some systems
- Flattening - Removes ability to select text
- Multiple compressions - Each pass degrades quality
- Not testing results - Always check compressed PDF quality
Quality Checklist
Before finalizing compression:
โ Text is sharp - Zoom to 150-200% and check
โ Images look good - No obvious artifacts or pixelation
โ Colors accurate - Compare side-by-side with original
โ Fonts display correctly - Test on different devices
โ File opens everywhere - Test on mobile, desktop
โ Text is selectable - Can copy and paste
โ Links still work - Click all hyperlinks
Advanced: Custom Compression Profiles
Create reusable settings:
Adobe Acrobat Custom Profile
Tools โ Optimize PDF โ Save as Custom Profile:
- Images: 150 DPI, JPEG Quality 85
- Fonts: Subset when <100% used
- Clean Up: Remove all unnecessary objects
- Discard: Thumbnails, metadata, print settings
Ghostscript Custom Settings File
% custom-settings.ps
<< /ColorImageDict
<< /QFactor 0.15
/Blend 1
/HSamples [1 1 1 1]
/VSamples [1 1 1 1]
>>
/ColorImageDownsampleType /Bicubic
/ColorImageResolution 150
/ColorImageDepth -1
>> setdistillerparams
Troubleshooting
"File still too large"
- Check image DPI (should be โค 300)
- Look for embedded videos
- Remove unused pages
- Split into multiple smaller PDFs
"Text looks blurry"
- You over-compressed (DPI too low)
- Re-compress with
/ebookor/printersetting - Use 150+ DPI for text documents
"Colors look wrong"
- Color profile mismatch
- Use
/prepresssetting to preserve colors - Check "Preserve color profile" option
Conclusion: Best Practices
For most PDFs:
- Use 150 DPI for images (300 DPI for printing)
- JPEG quality 80-85% (sweet spot)
- Subset fonts when possible
- Remove metadata and thumbnails
- Test results before sharing
Target file sizes:
- Text document: < 500 KB
- Document with images: 1-3 MB
- Photo-heavy PDF: 3-8 MB
- Professional presentation: 5-10 MB
Quick wins:
- 10 MB PDF โ 2 MB with medium compression (80% savings)
- 50 MB scanned document โ 4 MB with OCR + optimization (92% savings)
- 100 MB photo PDF โ 15 MB with image downsampling (85% savings)
Need to compress your PDFs? Use our free PDF compressor with automatic optimization. Compress hundreds of PDFs in seconds while maintaining quality!
About the Author

1CONVERTER Technical Team
Official TeamFile Format Specialists
Our technical team specializes in file format technologies and conversion algorithms. With combined expertise spanning document processing, media encoding, and archive formats, we ensure accurate and efficient conversions across 243+ supported formats.
๐ฌ Get More Tips & Guides
Join 10,000+ readers who get our weekly newsletter with file conversion tips, tricks, and exclusive tutorials.
๐ We respect your privacy. Unsubscribe at any time. No spam, ever.
