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

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