Skip to content
Nico Schlömer edited this page Mar 4, 2015 · 1 revision

Welcome to the PaperHub wiki!

Preparing documents for consumption by PaperHub

Most PDF software generates files which are larger than necessary. This is especially true of LaTeX since the text processing approach makes it hard to apply optimizations across the entire file. This is where Ghostscript can help out. For the example, the command

gs -q -dBATCH -dNOPAUSE -dSAFER -dFastWebView -sDEVICE=pdfwrite -dPDFSETTINGS=/default -sOutputFile=out.pdf in.pdf

can substantially decrease the file size, while also adding optimizations for fast web view. Replacing the /default setting by, e.g., /screen can further decrease the file size, but will also cut the quality of included figures. See the Ghostscript documentation for further options.

Clone this wiki locally