ubuntu console shrink pdf 1

ubuntu console shrink pdf

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

Here is what the above code is Doing:
1. gs – run the Ghostscript interpreter.
2. -sDEVICE=pdfwrite – output to a PDF file.
3. -dCompatibilityLevel=1.4 – make the PDF 1.4 compatible.
4. -dPDFSETTINGS=/screen – reduce the PDF file size by lowing the output quality.
5. -dNOPAUSE – don’t pause between pages.
6. -dQUIET – don’t output any messages.
7. -dBATCH – quit after processing all files.
8. -sOutputFile=output.pdf – name of the output file.
9. input.pdf – name of the input file.

Similar Posts