This uses Ghostscript to compress a PDF file.
- Download the compressor.sh file.
- Open the Terminal and navigate to the directory where the compressor.sh file is located.
- Run the command chmod u+x compressor.sh to give the file execute permission.
- To compress a file, run the command ./compressor.sh in the Terminal.
- The script will open a GUI asking for the location of the file that you want to compress.
- After you select the file, the script will compress the file and save it in the same location with the word ‘compressed’ added to the end of the file name.
- Ghostscript
- Zenity