Created
August 23, 2018 21:20
-
-
Save fionn/28cb77c731c7f0d115477f32a23788c3 to your computer and use it in GitHub Desktop.
Encrypt PDFs
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 | |
pw="yellow_submarine" | |
for arg in $*; | |
do | |
base=$(basename $arg .pdf) | |
pdftk $arg output ${base}_pw.pdf user_pw $pw | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment