

Presets the "distiller parameters" to one of four predefined settings:
#Pdf shrink file pdf#
Reference: : Controls and features specific to PostScript and PDF input

-dPDFSETTINGS=/screen lower quality, smaller size.
#Pdf shrink file how to#
Please refer to this guide to know how to use AppImage.Use the following ghostscript command: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \ To let you easily use the tool, we have packaged it in AppImage format. You may find the source code of the PDF Compressor on our GitHub repository. If you are not satisfied with the compression, you can choose another compression level and compress the file again. The compressed file is renamed by appending -compressed to the original file name. Your original PDF file remains untouched. The compressed PDF file is saved in the same folder as the original PDF file. The tool gives you a simple UI where you can select your input file, select a compression level and click on the compress button to compress the PDF file. Panos from It’s FOSS team worked on creating a Python-Qt based GUI wrapper for the Ghostscript. This is why we at It’s FOSS worked on creating a GUI version of the Ghostscript command that you saw above. The PDF editors in Linux doesn’t help much with compression. I understand that not everyone is comfortable with command line tool. Method 2: Compress PDF files in Linux using GUI tool There is not much you can do in such cases. Applying compression on some PDF files may even produce a file bigger than the original. Lower quality output (72 dpi) but smallest possible output file sizeĭo keep in mind that some PDF files may not be compressed a lot or at all. Medium quality output (150 dpi) with moderate output file size Higher quality output (300 dpi) but bigger size This is what determines the compression level and thus the quality of your compressed PDF file. What you need to know is the dPDFSETTINGS parameter. In the above command, you should add the correct path of the input and out PDF file. Now that you have made sure that Ghostscript is installed, you can use the following command to reduce the size of your PDF file: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=compressed_PDF_file.pdf input_PDF_file.pdf
#Pdf shrink file install#
On Debian/Ubuntu based distributions, use the following command to install Ghostscript: sudo apt install ghostscript However, you can still try to install it just to make sure. Most Linux distributions include the open source version of Ghostscript already. You can use Ghostscript command line tool for compressing a PDF file. Method 1: Reduce PDF file size in Linux command line
