Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 688 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 688 Bytes

pdf_compressor

Overview

This uses Ghostscript to compress a PDF file.

How to use this shell script?

  • 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.

System Dependencies

  • Ghostscript
  • Zenity