Please refer to this guide to know how to use AppImage. To let you easily use the tool, we have packaged it in AppImage format. PDF Chain Merge PDFs (including rotating the pages of one or more files) Extract pages from a PDF and save them to individual files Add a background or. 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. A simple Ghostscript command to merge two PDFs in a single file is shown below: gs -dNOPAUSE -sDEVICEpdfwrite -sOUTPUTFILEcombine.pdf -dBATCH 1.pdf 2.pdf. I understand that not everyone is comfortable with command line tool. It offers a graphical interface to perform PDF related. Method 2: Compress PDF files in Linux using GUI tool PDFSam is a well known utility to split and merge PDF files on Linux based operating systems. 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. Combine PDF files with different programs easily in Ubuntu 1.1 Using pdfunite 1.2 Using pdftk 1.3 Using convert 1.4 Using Ghostscript 1.5 Using pdfsam. 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 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 To merge a list of PDF documents, specify -m (or -merge) on the command-line followed by a list of one or more PDF documents to split.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |