Compressing
How to Optimize a PDF for the Web (Fast-Loading)
How to optimize a PDF for the web so it loads fast on phones: lossless repacking, image size, fast web view, and the metadata to fix before publishing.
Hamza M.
PDF Workflow Editor
A PDF on a website has a different job from one attached to an email. To optimize a PDF for the web, you need it to open quickly in a browser, often on a phone connection, and to say clearly what it is in the tab and in search results.
How to optimize a PDF for the web
To optimize a PDF for the web, make it small and quick to open: repack it losslessly, bring images down to screen resolution, give it a proper title, and linearise it for fast web view if your tools support it. Every megabyte you remove is felt by visitors on mobile data.
- 1Run the file through Optimize PDF. It repacks it losslessly and tells you how much it saved.
- 2Tick "Remove document metadata" if the title, author or software fields should not be published — or leave them and set a proper title in the source document.
- 3If images still make it heavy, use Compress PDF with a target size.
- 4If you need fast web view, linearise as the very last step in a desktop tool.
What Optimize PDF does, and does not do
| Step | Slate PDF Optimize PDF |
|---|---|
| Repack with compressed object streams | Yes |
| Drop unused objects and old incremental-save revisions | Yes |
| Change images or text | No — text stays selectable, images untouched |
| Clear title, author, subject, keywords, creator and producer | Optional checkbox |
| Lower image resolution | No — that is Compress PDF's job |
| Linearise (fast web view) | No |
| Return a bigger file | Never — if the rebuild is not smaller, you get the original back |
What is linearisation, and do you need it?
An ordinary PDF keeps its index at the end of the file, so a reader may need most of the download before it can display anything. A linearised — "fast web view" — PDF puts the first page and a hint table at the front, so a viewer that supports it can show page one while the rest is still arriving. It matters most for long, heavy reports.
Slate PDF does not linearise. If you need it, the free command-line tool qpdf has a --linearize option, and Adobe Acrobat can save an optimised PDF with fast web view. Linearise last: any later edit or re-save can undo it.
The other structural wins
- Subset fonts to the characters actually used, rather than embedding whole families — set this when exporting.
- Reuse resources — the same logo stored once instead of on every page.
- Drop unused objects left behind by editing.
- Rewrite the file to discard incremental save history.
- Remove embedded attachments that do not need to be there.
Also do these
| Action | Why |
|---|---|
| Set a document title | Browsers show it in the tab; search engines use it |
| Give the file a descriptive name | The URL is a ranking and usability signal |
| Check the metadata | Author and producer fields are published with the file |
| Serve it with gzip | Helps the text portions, though images are already compressed |
Consider whether it should be a PDF at all
PDFs on the web are worse than HTML pages for most reading: they do not reflow on a phone, they are slower to open, and they are harder for screen readers unless they are tagged — see making a PDF accessible. Publish the content as a page and offer the PDF as a download for people who want to print or file it.
If the file is still heavier than you expected after optimising, the causes are usually the ones in why a PDF gets so large.
Do it now
Optimize PDF
Repack a PDF losslessly to trim its size. It runs in this browser tab — your file is not uploaded anywhere.
Open Optimize PDFFrequently asked questions
What is fast web view?+
Another name for linearisation — the file is restructured so a supporting viewer can display page one before the download finishes.
Does Optimize PDF linearise the file?+
No. It repacks the file losslessly. Use qpdf or Acrobat afterwards if you need fast web view.
What size should a web PDF be?+
As small as the content allows. There is no official limit, but every megabyte is felt on a mobile connection, so compress image-heavy files before publishing.
Does optimising change how the document looks?+
Slate PDF's Optimize PDF does not — it is lossless. Lowering image resolution with a compressor does, though at screen resolution the difference is hard to see.
Do PDFs rank in search results?+
Yes, they are indexed. An HTML page on the same content will normally serve readers better.