GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
PDF Linearize for Fast Web |
20200526 Linearizing a pdf file results in a fast web view of the file. That is, the pdf will be streamed within a browser so that the first page will be displayed whilst the remaining pages are downloaded. For a non-linearized pdf the file will need to be fully downloaded before being viewed.
Use qpdf to linearize a pdf file.
$ qpdf --linearize mydoc.pdf faster.pdf |
To check if the PDF is linearized by this method try checking the 4th line of the pdf file:
$ sed '4q;d' faters.pdf << /Linearized 1 /L ... |