How to compress pdf in linux

In this article let’s discuss about How to compress pdf in linux. Let’s go through the following methods without any delay.

Method 1:

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

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=compressed_PDF_file.pdf input_PDF_file.pdf

Hope the above solution works.

Realted Posts : Base64 decode in powershell