Is it possible to create linearized PDFs (optimized for "fast web view") using TeX with free software? (I don't have Acrobat available.)
Asked
Active
Viewed 4,473 times
24
-
It has been deprecated a decade ago, being incompatible with cross-referenced PDF 1.5 — see https://bugs.ghostscript.com/show_bug.cgi?id=694099 – Leandro Mar 10 '17 at 14:01
2 Answers
31
Use qpdf --linearize, not pdfopt.
qpdf uses a pdf library while pdfopt uses ghostscript and as such has a much larger footprint and is more fragile.
Peeter Joot
- 3,025
- 2
- 25
- 35
Martin Schröder
- 15,156
-
6Would you also tell about the differences between the two tools? – Andrey Vihrov Mar 09 '12 at 09:16
-
13
The fast web view is simply a method of allowing content to be displayed as it is being downloaded.
It will not, however, be fast. As such the name fast can be deviating from its meaning.
You should use qpdf --linearize as noted by @MartinSchroeder (pdfopt is deprecated as noted in the comments).
PDFcrop will also do that for you, however with additional work done, i.e. cropping your PDF.
nickpapior
- 17,275
-
1
pdfoptdoes the job. (In Adobe Reader, under properties it now says, "Fast Web View: Yes", that's all I wanted.) – fuenfundachtzig Mar 08 '12 at 12:29 -
2
pdfoptis not longer part of ghostscript. Instead ofpdfoptthepdfwriterofgsprovides an option-dFastWebView=true. So you have to use, e.g.,gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dFastWebView=true -sOutputFile=output.pdf input.pdfinstead ofpdfopt. – Schweinebacke Mar 10 '17 at 08:57