keptlocal
· 7 min read · PDF

How to Compress a PDF for Email Attachments

HM
Hiten Mahalwar
Founder, keptlocal · Technical Lead, Healthcare IT

Gmail caps attachments at 25 MB. Outlook at 20 MB. Many corporate email systems are stricter — 10 MB or even 5 MB. A PDF that opens fine on your desktop may bounce as an email attachment. Here is how to fix it.

First: understand what is making the PDF large

Before compressing, it helps to know what is taking up the space. There are three main culprits:

  • Embedded images: by far the most common cause of large PDFs. A PDF with scanned pages, product photos, or design graphics can easily reach 50–200 MB because each image is embedded at full resolution.
  • Embedded fonts: PDF can embed the full font file for every typeface used in the document. A PDF using several custom fonts may include several MB of font data.
  • Metadata and unused resources: documents exported from design tools (InDesign, Illustrator) often include significant overhead — creation metadata, unused objects, duplicate resources — that contributes nothing visible.

The right compression approach depends on which of these is the primary cause.

Option 1: Browser-based compression (no upload)

The Compress PDF tool on keptlocal removes metadata and unused objects entirely in your browser. Your file is never uploaded.

  1. Drop your PDF onto the tool.
  2. Choose what to remove: metadata (author, title, creation date) and/or annotations (comments, highlights).
  3. Click Compress & download. The tool shows the before and after file size.

This approach works best for PDFs where metadata overhead is the issue — exports from Illustrator or InDesign, Word-to-PDF conversions with revision history, or documents with many embedded comments from a review cycle.

What it does not do: re-encode images at lower quality. For image-heavy PDFs, see the options below.

Option 2: Print to PDF (any OS, free)

Printing a PDF to a new PDF file re-renders it through the operating system's PDF engine, which often compresses images and strips metadata in the process:

  1. Open the PDF in your browser or PDF reader.
  2. Press Ctrl+P / Cmd+P.
  3. Set the destination to Save as PDF (Chrome) or Microsoft Print to PDF (Windows) or Save as PDF (macOS).
  4. Save the new file.

The results vary. Chrome's print-to-PDF typically downsamples images and produces noticeably smaller files. The trade-off is that formatting may shift slightly, form fields and annotations are removed, and embedded fonts are re-rendered as bitmaps in some cases.

Option 3: macOS Quartz filter (free, local)

macOS Preview has a "Reduce File Size" Quartz filter that aggressively compresses images:

  1. Open the PDF in Preview.
  2. File → Export → Format: PDF → Quartz Filter: "Reduce File Size".

This often produces dramatic size reductions but can degrade image quality significantly. It is fine for documents where the images just need to be readable, not print-quality. Not recommended for design documents, photography, or anything where visual quality matters.

Option 4: Adobe Acrobat Pro (paid)

Acrobat Pro's Reduce File Size and PDF Optimizer tools give the most control. You can set image resolution targets separately for colour, grayscale, and monochrome images, choose JPEG compression quality, and control which embedded resources to keep or discard.

For regular PDF compression with quality control, Acrobat Pro is the best tool. For a one-off attachment, the free options are usually sufficient.

Option 5: Ghostscript (free, command line)

Ghostscript is the engine used by many server-side PDF tools under the hood. If you are comfortable with a command line and want maximum control:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \
   -dPDFSETTINGS=/ebook \
   -dNOPAUSE -dQUIET -dBATCH \
   -sOutputFile=compressed.pdf input.pdf

The -dPDFSETTINGS flag controls the compression level:

  • /screen — lowest quality, smallest size (72 DPI images)
  • /ebook — good quality, moderate size (150 DPI images) — best for email
  • /printer — high quality, larger size (300 DPI images)
  • /prepress — maximum quality, minimal compression

Benchmarks: what actually reduces file size

For a 15 MB PDF consisting mostly of scanned pages:

  • Metadata removal only: 14.8 MB (minimal impact — images dominate)
  • Chrome print-to-PDF: ~6 MB (image quality noticeably reduced)
  • Ghostscript /ebook: ~4 MB (good quality for screen viewing)
  • Acrobat Pro Optimiser at 150 DPI: ~3.5 MB (best balance)

For a 15 MB PDF from InDesign with high-resolution graphics:

  • Metadata removal: 11 MB (significant — design tools add substantial overhead)
  • Chrome print-to-PDF: ~8 MB (additional reduction from image resampling)
  • Acrobat Optimiser: ~4 MB with quality settings tuned

The privacy consideration

When you upload a PDF to a compression tool, the full document — including any sensitive content — travels to a server you do not control. For internal reports, financial documents, contracts, or anything with personal data, that upload is a real privacy risk.

Browser-based compression (keptlocal), print-to-PDF, Preview, and Ghostscript all run locally. Your file never leaves your device. For documents where content is sensitive, choose one of these rather than an online upload-and-process service.

Compress PDF in your browser — removes metadata and unused objects without any upload. For more on PDF file size, see PDF compression: file size vs. quality explained.