Densification It is a graphical user interface that simplifies the process of compressing PDF files on Linux using Ghostscript.
The tool uses Gtk and is written in Python. It uses a simple interface that allows users to select the PDF file to be compressed, PDF optimization level and output file name (compressed.pdf by default, so the original file will not be overwritten) .
Click? Can explain the PDF optimization level. The button is under “Type” as shown below:
- Screen: Choose a low-resolution output / 72 dpi image similar to the Acrobat Distiller “Screen Optimizer” setting
- E-book: Choose a medium-resolution output / 150 dpi image similar to the Acrobat Distiller “e-book” setting
- Printer: Choose output similar to “Acrobat Distiller” “Print Optimization Settings / 300 dpi image
- Prepress: Choose an output / 300 dpi image similar to Acrobat Distiller’s “Prepress optimization” setting
- Default: Choose output intended for multiple uses, possibly at the expense of a larger output file
You will need to try these settings and see which one is best for your use case. For example, the PDF optimization level of the screen and e-book will further compress the PDF, but after zooming in a little, check the quality to see if you are satisfied.
Densify uses Ghostscript to compress PDF files. Ghostscript is a set of software based on PostScript language and PDF interpreter. Its use ranges from rasterizing or rendering such files, or displaying or printing document pages, to conversion between PostScript and PDF files.
Download and install Densify
To use Densify, you need Python2,
python-giAnd Ghostscript. You can install these packages in Debian, Ubuntu, and Debian / Ubuntu based Linux distributions (such as basic OS or Linux Mint) using the following commands:
sudo apt install python-gi ghostscript
next, Download the latest Densify
.tar.gz Archive and unzip it to your home folder. Now you should have a Densify-0.2.0 (different versions) folder, you can install it in
/opt By moving it there:
sudo mv Densify-0.*.0 /opt/Densify
Finally, install the Densify menu item in the following location (hope to install the application in / opt / Densify)
sudo mkdir -p /usr/local/share/applications/ sudo cp /opt/Densify/densify.desktop /usr/local/share/applications/
You should now find “Dense” in the application menu.
If you want to remove Densify from the system, you can use the following command:
sudo rm -r /opt/Densify sudo rm /usr/local/share/applications/densify.desktop