Created
October 25, 2013 22:28
-
-
Save searls/7162798 to your computer and use it in GitHub Desktop.
Flatten PDF files with annotations to lock them down. Requires ghostscript (`brew install ghostscript`)
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
#!/bin/bash | |
FILE="$1" | |
OLD_FILE="$1-og.pdf" | |
mv "$FILE" "$OLD_FILE" | |
pdf2ps "$OLD_FILE" - | ps2pdf - "$FILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment