PDF: Difference between revisions

From Wiki :-)
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
== Compress a PDF file<ref>http://askubuntu.com/questions/113544/how-can-i-reduce-the-file-size-of-a-scanned-pdf-file/256449#256449</ref> ==
== Compress a PDF file<ref>http://askubuntu.com/questions/113544/how-can-i-reduce-the-file-size-of-a-scanned-pdf-file/256449#256449</ref> ==
 
<code>
<syntaxhighlight lang="bash">
$ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
$ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
</syntaxhighlight>
</code>

Revision as of 06:13, 21 May 2016

Compress a PDF file[1]

$ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf