What optimizing for the web means
A normal PDF stores its parts in the order they were created. To show the first page, a browser or PDF reader often needs the end of the file first, so it has to download everything. For a 30 MB catalogue on a slow mobile connection, this means a long wait with an empty screen.
An optimized, or linearized, PDF is arranged differently. Everything needed for the first page comes first in the file, followed by the other pages in order, together with a small index. A reader that supports this feature, called Fast Web View in Adobe Acrobat, can show the first page almost at once and load further pages as the visitor scrolls. The web server must support partial downloads, which almost all servers do.
When to use it
- Price lists, catalogues, brochures and menus that you link from your website.
- Manuals, reports and e-books that visitors read online.
- Large documents in a company intranet or a document management system.
- PDFs that are shown in an embedded viewer on a web page.
For small files of a few pages, or files that people always download before reading, linearization makes little difference.
Fast web view works only when the PDF is opened from a web address. When a visitor saves the file first and opens it from the disk, the whole file is already there, and the order of the data does not matter. It also does not help when the web server sends PDF files compressed with gzip or does not allow partial downloads. If the first page still appears late, ask your hosting provider about these settings. When you replace a file on your website, upload the optimized copy with the same file name, so existing links keep working.
Optimize is not compress
Besides linearization, the tool packs objects into compressed streams and drops resources that no page uses, so the file often becomes a little smaller. Sometimes the added web index makes it a few kilobytes larger; the result shows the size before and after. The content does not change: text, images, links and bookmarks stay exactly as they were. To make a large PDF much smaller, use Compress PDF first and then optimize the compressed file here. The order matters: most tools, including compression and merging, write a new file that is not linearized, so optimization should always be the last step.
How it is done
The tool uses qpdf, an open-source PDF library that is a standard tool for linearization, compiled to run in your browser. Your file is not uploaded. Password-protected files open after you enter the password, and the optimized copy keeps the same password and permissions.
When you open a file, the tool tells you whether fast web view is already on. After optimizing, it checks the new file and confirms that fast web view works. You can also check it yourself in Adobe Acrobat or Reader: in the document properties, Fast Web View should say Yes. If a file is damaged and cannot be optimized, try Repair PDF first. To set a proper title for search engines and browser tabs before publishing, use Edit Metadata, then optimize.