Skip to content

espositofederico44/pdf-compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

pdf-compress

Compress all the pdf in a folder with a bash script


Istructions

This script is writing in bash but you can use WSL for running the code with Windows.

  1. Install ghostscript for ubuntu use
sudo apt update
sudo apt install ghostscript
  1. Create a folder and insert into that your folder with all your pdf (name a for example) and this script.
  2. Use cd for changing directory and set your main directory.
cd a
  1. Check if the name of the folder is the same that you set in the script.
  2. Set the permission of the file and the folder
chmod -R u=rwx a
  1. Run the script with
./pdf_compess.sh
  1. Read the output for the confirm.

gg!

About

Compress all the pdf in a folder with a bash script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages