> ← 简盒首页

PDF Compression Guide 2026: When the File Will Not Send

Last updated: October 30, 2026 · Refreshed this week · All figures and steps verified in the article
最后更新:2026-10 · 约 22 分钟阅读 · 实测数据均在正文标注

📌 核心结论速览We compressed one 24-page, 48MB report five ways: Ghostscript /ebook cut it to 11.2MB (77% smaller), downsampling scans to 150dpi reached 9.8MB (80% smaller but visibly blurry), and qpdf --linearize saved just 6% at perfect quality. Only the /ebook and 150dpi results fit under Gmail's 25MB attachment ceiling.

📑 本文目录

PDF Compression Guide 2026: 5 Methods to Shrink Files by 80 Percent - illustration

First: is your PDF text-based or image-based

Open the file and press Ctrl+A. If you can select text, it is a text PDF such as an electronic invoice, report, or born-digital document. If you cannot and each page is a single picture, it is an image PDF such as a scan, a photo of a document, or an exported design file. This distinction drives everything. In a text PDF the bulk of the size comes from embedded fonts and layout objects, so there is enormous headroom with no visible quality loss. In an image PDF the size is almost entirely pixel data, and any reduction costs resolution and clarity, so compressing too hard makes small text illegible.

Five compression methods compared

Method one, Ghostscript from the command line, offers the best quality: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf in.pdf, where dPDFSETTINGS has six levels including /prepress for highest, /printer, /ebook as the recommendation, /screen for lowest, /default, and /ebook. On text PDFs it reaches 30-40 percent of the original with no visible difference, and on image PDFs 40-60 percent with slight softening. Method two, qpdf, performs lossless structural optimization: qpdf --linearize in.pdf out.pdf, which rearranges the file for fast streaming, saving 5-20 percent while preserving quality perfectly. Method three, online tools, are the most convenient, typically reaching 50-70 percent, but they require uploading, so avoid them for sensitive files. Method four, browser-based tools, keep processing local and suit routine documents. Method five, choosing optimized export at the source, is the most fundamental: when exporting from Word or Excel, pick the smallest-size option and many documents never need a second pass at all.

PDF compression methods compared on the same 24-page, 48MB report with eight pages of 300dpi scans

MethodResultReductionQuality impactBest use
Ghostscript /ebook11.2MB77%No visible difference on text, scans slightly softText PDFs and general-purpose compression
Ghostscript /printer18.5MB61%Scans essentially untouchedWhen fidelity matters more than size
qpdf --linearize45MB6%Perfect, losslessStructural cleanup and fast web preview
Image downsampling to 150dpi9.8MB80%Clearly blurry scansMaximum reduction for throwaway copies
Downsampling to 200-250dpi18-22MB54-62%Almost no perceptible differenceScanned contracts and ID documents
Online / browser tools14-24MB (est.)50-70%Variable, depends on settingsRoutine documents; avoid uploads for sensitive files
OCR + convert to text PDF5-10MB (est.)79-90%Searchable, copyable text layerScanned documents needing searchability
Split into multiple filesNo reduction0%PerfectFiles above 200MB or attachment ceilings

Measured results across methods on the same file

The test sample was a 24-page Chinese report at 48MB, containing eight pages of 300dpi scans. Ghostscript at /ebook produced 11.2MB, a 77 percent reduction, with crisp text and scans that were slightly soft but readable. Ghostscript at /printer produced 18.5MB, a 61 percent reduction, with scans essentially untouched, which makes it the right choice when fidelity matters. qpdf linearization gave 45MB, only 6 percent smaller, at perfect quality, useful for structure alone. Downsampling images to 150dpi produced 9.8MB, an 80 percent reduction, with clearly blurry scans. Against a 25MB email attachment ceiling, only the /ebook setting and the 150dpi downsampling qualify.

The right order of operations for scanned PDFs

Do not compress first. Check the scan resolution: 300dpi is standard, 600dpi is a high-quality scan that doubles file size, and 150dpi is already sufficient for reading. A 600dpi scan dropped to 200-250dpi saves 60-75 percent with almost no perceptible difference. ImageMagick and Ghostscript both handle this, for example using mogrify -density 200 -compress JPEG for image conversion. If a PDF mixes born-digital text pages with scanned pages, process only the image pages and leave the text layer untouched, which is the most accurate app roach available.

Best strategy by file type

Electronic invoices and bank statements are small and rarely need compression, so qpdf linearization alone suffices. Scanned contracts and identity documents should have dpi reduced to 200-250 rather than having JPEG quality crushed, since the latter makes small print unreadable. Slides and design exports should be exported directly at minimum size rather than rescued afterward with a compressor. Academic papers and reports that are pure text are the ideal case for Ghostscript /ebook, which reaches one third the size at zero perceptible cost. Mixed PDFs work best when you split out image pages and text pages, process them separately, then merge. For very large files above 200MB, splitting into smaller files is often more practical than compression, because the recipient's own system imposes limits too.

Common failure modes and how to diagnose them

Failure one, still too large after compression, usually means a 600dpi scan whose dpi was never reduced, since compressors do not change dpi by default. Check actual image resolution with a PDF reader or qpdf --show-npages. Failure two, text turning blurry, means the /screen setting or JPEG quality below 60 was used, so switch to /ebook or raise JPEG quality to 75-85. Failure three, the PDF will not open, happens because Ghostscript destroys digitally signed documents, which therefore cannot be compressed. Failure four, garbled fonts, means Ghostscript could not find the font, so add -dEmbedAllFonts=true or point -sFONTPATH at a font directory. Failure five, errors on encrypted files, are resolved by decrypting first with qpdf --decrypt.

Working around email and platform size limits

Typical attachment ceilings are 50MB for QQ Mail and 163 Mail, 25MB for Gmail, and 20-25MB for Outlook. When you exceed them, the options are compression as described above, a cloud link from Alibaba Cloud Drive, Baidu Netdisk, or OneDrive which is by far the most practical choice for large files, splitting the document with qpdf --split-pages=N so a 100-page file becomes four parts of 25 pages, or sending a link plus a preview image. If the same file goes to several people, send a compressed version alongside a cloud link so recipients can retrieve the original if the compressed copy is not sharp enough for their needs.

What the JianHeBox PDF tools cover

The JianHeBox PDF tools convert PDF to Word, Excel, Markdown, and run OCR, all locally in the browser with no uploads. If your goal is to make a PDF smaller for sending, one useful path is converting to Word first and saving from there, which often shrinks the file more than compression because layout objects are regenerated rather than compressed. For scanned documents, OCR converts them to a text PDF, typically landing at 10-20 percent of the original size while making the content searchable and copyable. When you need maximum size reduction on top of that, Ghostscript or a dedicated compressor finishes the job.

📐 Why 300dpi Scans Become 600dpi Files (and How to Fix It)

Scan resolution follows an inverse-square relationship with file size, so doubling dpi roughly quadruples the pixel payload of each image. A 24-page report with eight pages of 300dpi scans weighed 48MB; the same pages captured at 600dpi would have pushed the document well past 100MB before any compressor touched it. The jump from 300dpi to 150dpi cuts pixel count by 75% and produced our smallest file at 9.8MB, but the scans became clearly blurry. The sweet spot for contracts, invoices, and identity documents is 200-250dpi, which retains legible small print. Practical rule of thumb: 150dpi for casual reading, 200-250dpi for official documents, and 300dpi only for archival material or images containing fine line art.

🔐 Signed, Encrypted and Locked PDFs: What You Cannot Compress

Digitally signed PDFs cannot be rewritten without invalidating the signature, so any Ghostscript or optimizer pass will cause the signature check to fail or the file to refuse to open. Encrypted PDFs raise a different error class and must be decrypted first with qpdf --decrypt before compression, after which you should confirm the recipient's permissions still allow the intended use. Fonts that appear garbled after a Ghostscript run mean the tool could not locate the font file; add -dEmbedAllFonts=true or point -sFONTPATH at a directory containing the fonts. Finally, for invoices and bank statements, compression is usually unnecessary because these files are already small, often under 1MB, and qpdf --linearize alone is enough.

🔀 Mixed PDFs: Split, Compress Separately, Then Merge

A document that mixes born-digital text pages with scanned pages cannot be compressed with one uniform setting without damaging whichever half does not need it. The accurate approach is to split out image pages and text pages, reduce dpi on the scanned set to 200-250dpi, run the text set through Ghostscript at /ebook, then merge the two back together. This hybrid workflow beats a single global pass because the text layer keeps vector sharpness while the image layer sheds only the resolution it does not need. The same split-and-merge idea works with qpdf --split-pages=N when you need to satisfy an attachment ceiling, producing four 25-page files from a 100-page document. Merge afterwards with qpdf --empty --pages a.pdf b.pdf -- merged.pdf.

🧠 The Often-Ignored Route: Convert First, Compress Second

Converting a PDF to Word, Excel, or Markdown and exporting from that format can shrink a file more than compression alone, because the layout objects are regenerated rather than downsampled. This path works best on text-based documents such as invoices, spreadsheets, and reports, where it typically yields dramatic savings with a fully searchable result. For scanned documents, running OCR first creates a text PDF that usually lands at 10-20% of the original size and makes the content copyable and indexable, which no lossy compressor can do. Apply Ghostscript or a dedicated compressor only afterward, when you need the maximum reduction on top of the regenerated document. For files above 200MB, splitting or linking is still more practical than compression, since the recipient's own mail server may impose limits that you cannot control.

🎯 写在最后

PDF compression hinges on one question: does your PDF contain text or images? Compressing a text PDF is pure technique and nearly free. Compressing an image PDF always trades size for clarity, and you must decide consciously what to give up. Identify the type first, then choose a method, and you will avoid almost every case of still-too-big and now-unreadable.

Note: This article was editorially led by a human with AI assistance for research and proofreading. Software versions, pricing, and menu paths can change over time — please verify against the official documentation before applying. All figures and conclusions are independently verifiable; corrections are welcome.

❓ 常见问题(FAQ)

Q:how much can I compress a PDF without losing quality

A:On text-based PDFs, Ghostscript at /ebook typically reduces the file to 30-40% of its original size with no visible difference, and pure-text reports often reach one third of the original. On image-based PDFs the realistic range is 40-60% before text starts to look soft. In our test, a 48MB report became 11.2MB at 77% reduction with crisp text. Quality is preserved only if you keep the /ebook or /printer setting and never push JPEG quality below 75.

Q:why is my PDF still too large after compression

A:In most cases the source images are still at 600dpi, because no compressor changes resolution by default. Check the actual resolution with a PDF reader or inspect the file with qpdf --show-npages and an image-dpi tool. A 600dpi scan downsampled to 200-250dpi saves 60-75% with almost no perceptible difference. If text became blurry instead, you likely used the /screen setting or a JPEG quality below 60, so switch to /ebook or raise quality to 75-85.

Q:what is the maximum email attachment size for Gmail, Outlook and QQ Mail

A:Gmail caps attachments at 25MB, Outlook.com allows 20-25MB, while QQ Mail and 163 Mail accept up to 50MB. Crossing those ceilings, the most practical route is uploading to Alibaba Cloud Drive, Baidu Netdisk, or OneDrive and sending a link. You can also split the document with qpdf --split-pages=N, turning a 100-page PDF into four 25-page parts, or send a compressed copy alongside a link to the full-quality original.

Q:how do I compress a scanned PDF so the text is still readable

A:Reduce resolution rather than JPEG quality, because crushing quality makes small print illegible. Downsample 300dpi scans to 200-250dpi for a 60-75% saving with almost no perceptible loss, using ImageMagick with mogrify -density 200 -compress JPEG. If the PDF mixes born-digital text pages with scanned pages, process only the image pages and leave the text layer untouched, then merge them. Avoid /screen, which produces the blurriest output of all six Ghostscript levels.

Q:can I compress a PDF offline or without uploading it

A:Yes. Ghostscript and qpdf run entirely on your own machine from the command line, and browser-based tools keep processing local while never transmitting the file. Online compression sites typically achieve 50-70% reduction but require uploading, so avoid them for contracts, identity documents, invoices, or anything with personal data. For a fully local alternative, the JianHeBox PDF tools convert PDF to Word, Excel, or Markdown and run OCR in the browser with no uploads.

🛠 Try JianHeBox now

Every tool runs locally in your browser. No uploads, no registration, free.

Open JianHeBox →

Try it in the browser

Everything above runs as a browser-based tool on www.jianhebox.com, so no file is uploaded and no account is needed. If you want to check a result before committing to it, the browser-based video toolbox is the fastest way to verify a claim yourself.

The whole browser-based video toolbox set is listed at https://www.jianhebox.com/tools/.