Created
September 15, 2022 18:34
-
-
Save k12ish/1eeffde7071212948a1f6c05e869eca3 to your computer and use it in GitHub Desktop.
Simple script that resizes PDF files to A4
This file contains 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
DIRECTORY=. | |
for FILEPATH in $DIRECTORY/PDF-*.pdf; do | |
FILENAME="$(basename "$FILEPATH" .pdf)_A4" | |
pdftocairo -pdf -paper A4 $FILEPATH processed/$FILENAME.pdf | |
mv $FILEPATH processed/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment