Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
289 B

#!/bin/env bash
while [ $# -gt 0 ]; do
ENCRYP=$1
DECRYP=$(echo "$ENCRYP" | sed 's/\.\w*$/_unlocked.pdf/')
#qpdf --decrypt "$ENCRYP" "$DECRYP"
gs -sPDFPassword=$PASS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=%stdout% -c .setpdfwrite -f "$ENCRYP" > "$DECRYP"
shift
done