Created
October 24, 2016 12:24
-
-
Save drcjar/b3b14aad12fc886037de306add83ec2b to your computer and use it in GitHub Desktop.
makes default xsane pdf saves be less big, run ./shrinkpdf.sh in directory containing xsane pdf saves
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 | |
#makes default xsane pdf saves be less big, run ./shrinkpdf.sh in directory containing xsane pdf saves | |
shopt -s nullglob | |
for f in *.pdf | |
do | |
echo "shrinking- $f" | |
pdf2ps "$f" "${f%.pdf}.ps" | |
done | |
for f in *.ps | |
do | |
ps2pdf "$f" "${f%.ps}.pdf" | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment