Skip to main content

Simple CLI tool for decrypting PDF files.

Project description

decryptpdf

CI Status Documentation Status Test coverage percentage

uv Ruff pre-commit

PyPI Version Supported Python versions License


Documentation: https://decryptpdf.readthedocs.io

Source Code: https://github.com/34j/decryptpdf


Simple CLI tool for decrypting PDF files.

Installation

Install this via pip (or your favourite package manager):

pipx install decryptpdf

Usage

> 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.                     │
╰──────────────────────────────────────────────────────────────────────────────────╯

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Kristian Johansson
Kristian Johansson

💻 🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

Copier

This package was created with Copier and the browniebroke/pypackage-template project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

decryptpdf-1.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

decryptpdf-1.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file decryptpdf-1.1.0.tar.gz.

File metadata

  • Download URL: decryptpdf-1.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for decryptpdf-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c19cbb2110c043b9d33ac7f650901b9a861988173ff0571c3251c0dc4e3f4dc1
MD5 c0115842c232da3bb51ea7bf15a3ce58
BLAKE2b-256 169d79ba3163272d59c6c031720a64fcda8169ababaab6761ffa4fbb1f086492

See more details on using hashes here.

Provenance

The following attestation bundles were made for decryptpdf-1.1.0.tar.gz:

Publisher: ci.yml on 34j/decryptpdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file decryptpdf-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: decryptpdf-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for decryptpdf-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 180c5c50b5c1b95eb107aaa7b4fc17fd2ba96fa2757f5ca6b3ca53dacc857caf
MD5 2bcbce7266f781be27dea9c819de8b37
BLAKE2b-256 f920d29dfd0fb012d2310e19306ef1ddf34c44d253129cef07ed27999408ec1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for decryptpdf-1.1.0-py3-none-any.whl:

Publisher: ci.yml on 34j/decryptpdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page