Skip to content

Instantly share code, notes, and snippets.

@fionn
Created August 23, 2018 21:20
Show Gist options
  • Save fionn/28cb77c731c7f0d115477f32a23788c3 to your computer and use it in GitHub Desktop.
Save fionn/28cb77c731c7f0d115477f32a23788c3 to your computer and use it in GitHub Desktop.
Encrypt PDFs
#!/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