-
-
Save keinwort/943ec3e04ce564785bc6c1f39541903c to your computer and use it in GitHub Desktop.
shrink size of a pdf file terminal edition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -e -p "Please insert file: " file | |
if test -e $file | |
then pdf2ps $file tmp.ps && ps2pdf tmp.ps $file-small.pdf && rm tmp.ps | |
else echo "File not found!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment