Documentation: https://decryptpdf.readthedocs.io
Source Code: https://github.com/34j/decryptpdf
Simple CLI tool for decrypting PDF files.
Install this via pip (or your favourite package manager):
pipx install decryptpdf
> decryptpdf -h
Usage: decryptpdf [OPTIONS] PATH
Decrypts a PDF file.
If PATH is a directory, recursively searches for PDF files. If PATH is a file and
does not exist, checks if PATH with ".pdf" extension exists. If the file is not
encrypted, skips it.
╭─ Arguments ──────────────────────────────────────────────────────────────────────╮
│ * path PATH [default: None] [required] │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --password -p TEXT The password to decrypt │
│ the PDF file. │
│ [default: None] │
│ [required] │
│ --overwrite -o --no-overwrite -n Overwrite the original │
│ file, or save decrypted │
│ file as .decrypted.pdf │
│ [default: o] │
│ --install-completion Install completion for │
│ the current shell. │
│ --show-completion Show completion for the │
│ current shell, to copy it │
│ or customize the │
│ installation. │
│ --help -h Show this message and │
│ exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
This package was created with Copier and the browniebroke/pypackage-template project template.