In some cases when we are scanning documents and converting them to pdf, the pdf size may be having very high size. If we want to upload this pdf file to some websites, the high size may take much time to upload or some times, the website may not approve to upload files with high size.
We can easily reduce pdf size with a single terminal command in linux.
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=output.pdf input.pdf
We can also use the following parameters for -dPDFSETTINGS instead of /screen:
- /screen – Lowest quality, lowest size
- /ebook – Moderate quality
- /printer – Good quality
- /prepress – Best quality, highest size