Skip to content

Instantly share code, notes, and snippets.

@afoeder
afoeder / decrypt-pdf.sh
Last active May 25, 2026 13:58 — forked from okvv/decrypt-pdf.sh
bash script to bulk remove password from (pdf) files in current directory using qpdf
#!/usr/bin/env bash
read -rsp "PDF password: " password
echo
for f in *pdf
do
qpdf --password="$password" --decrypt --replace-input "$f";
done