Decrypt password-protected PDFs
Find a file
2026-01-03 15:46:06 +02:00
src/pdf_decrypt Initial commit 2026-01-03 15:40:10 +02:00
.gitignore Initial commit 2026-01-03 15:40:10 +02:00
.python-version Initial commit 2026-01-03 15:40:10 +02:00
pyproject.toml Initial commit 2026-01-03 15:40:10 +02:00
README.md Update README 2026-01-03 15:46:06 +02:00
uv.lock Initial commit 2026-01-03 15:40:10 +02:00

pdf_decrypt

A tool to decrypt annoyingly encrypted PDFs.

Save passwords in ~/.config/pdf_decrypt/passwords.yaml as a list, like so:

---
- 12345
- 54321

The script will go through each of them and try to decrypt it. If none of them work, it will exit and complain.

I suggest installing through uv, this makes this script into an executable on your path. If you prefer, there is also PEP-723 metadata inline.