為何壓縮 PDF 可能會移除其中的文字
You compress a PDF, the file gets smaller, and then you notice you can't select a word, the search box finds nothing and the links don't work. Or the "compressed" file is bigger than the original. Neither is a bug in the usual sense. It's what happens when compression works by turning pages into pictures, which is how PDF Quick Editor's compressor works. This article explains why, how to tell in advance whether your PDF will be affected, and what to do instead when it would.
Compress PDF — Shrink scans and photo PDFs. Free under 200 KB.
Open Compress PDFTwo kinds of content in a PDF
A PDF page can hold two very different kinds of content:
- Real text and shapes. When you export a document from Word, a spreadsheet program or a web browser, the words are stored as characters with a font. They're tiny in file size, sharp at any zoom level, and you can select, search and copy them. Links and form fields are stored as separate interactive objects.
- Images. Photos, logos and scanned pages are stored as pictures. A scanned page has no text at all as far as the file is concerned, just pixels that happen to look like letters.
Most of the size of a typical PDF comes from images. Text is usually cheap.
What our compressor does
The Compress PDF tool draws each page as an image, saves it as a JPEG at the quality you choose (50%, 70% or 85%, with Balanced 70% suggested), and builds a new PDF from those images. That's a reliable way to shrink scans and photo-heavy files, but it has consequences for anything that wasn't already an image:
- Selectable text is gone. The words are now part of a picture, so you can't select, copy or search them.
- Links stop working. They're drawn as part of the image, but nothing happens when you click them.
- Form fields are flattened. Whatever was typed into them remains visible, but they can no longer be filled in or edited.
- Accessibility suffers. Screen readers can't read text that's only an image. If accessibility matters for your document, check it with the PDF accessibility checker and don't compress it this way.
Why a text-only PDF can get bigger
Text stored as characters is extremely compact; a full page of it may take only a few kilobytes. A JPEG of that same page has to describe every pixel, and even a well-compressed image of a page is usually larger than a few kilobytes. So if your PDF is mostly text, such as a contract, an invoice or a report exported from a word processor, converting it to images can make it larger, not smaller, and worse to use. The tool shows the size before and after, so you'll see when this happens; just keep the original.
How to tell what kind of PDF you have
- Try selecting text. Open the PDF and drag across a line. If you can highlight individual words, it has real text.
- Search for a word. Press Ctrl+F (Cmd+F on a Mac) and search for something you can see on the page. If it's found, the text is real.
- Look at the size per page. Hundreds of kilobytes or more per page usually means images. A few kilobytes per page usually means text.
If you can't select anything and the file is large, it's almost certainly a scan, and compression is the right tool. How to compress a scanned PDF walks through it.
What to do with a text-based PDF that's too big
- Find what's heavy. Large text PDFs usually contain a few big images, such as photos or full-page backgrounds. If you made the document, shrink or remove those in the original and export again.
- Re-export with smaller images. Many programs offer a "smaller file" or "minimum size" option when saving as PDF. That reduces images while keeping text as text.
- Remove pages you don't need. Delete PDF pages or Split PDF can cut out appendices or duplicate sections.
- Send it another way. If the problem is an email limit, a file-sharing link avoids it without changing the document.
Mixed documents
Some PDFs are part text, part scan, for example a typed report with signed scanned pages attached. Compressing the whole file turns the typed pages into images too. A cleaner approach is to split off the scanned part with Split PDF, compress only that, and combine the pieces again with Merge PDF.
Can you get the text back?
Not from the compressed file itself, so keep your original. If you only have an image-based PDF and need its words, the PDF OCR tool can make up to 10 pages per run searchable again. OCR can make mistakes with small or unusual fonts, so check the output.
The short version
Image compression is the right choice for scans and photos, and the wrong one for documents whose text, links or fields you still need. Check whether you can select text first. If you can, look for another way to make the file smaller.
Questions
Why can't I select text after compressing my PDF?
The compressor saves each page as a JPEG image, so the text becomes part of a picture. Keep the original if you need selectable text.
Why did my PDF get bigger after compressing?
If the PDF was mostly real text, images of its pages take more space than the text did. Keep the original in that case.
Do form fields still work after compression?
No. Their contents stay visible, but the fields are flattened and can't be filled in or edited.
Is there a way to compress without losing text?
Not with this tool. For text PDFs, re-export from the original program with smaller images, remove unneeded pages, or share the file by link.