Skip to main content

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!

Metadata

Release files for decryptpdf 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decryptpdf 1.2.0
File Size Uploaded Provenance Actions
decryptpdf-1.2.0.tar.gz 8.4 kB With provenance Details for decryptpdf-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for decryptpdf 1.2.0
File Interpreter ABI Platform Actions
decryptpdf-1.2.0-py3-none-any.whl Python 3 none any Details for decryptpdf-1.2.0-py3-none-any.whl

Total release size: 16.7 kB

Release files / decryptpdf-1.2.0.tar.gz

Download URL decryptpdf-1.2.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5c4eedcbb405c31c9fb8434559a81bec03cc15fa400b9ccf678ee1c91a2bc63d
BLAKE2b-256 checksum
How to use checksums
1c87098ec9922164dd987684b4f0e509beba5c20abcdee59ead2092efebe9e20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / decryptpdf-1.2.0-py3-none-any.whl

Download URL decryptpdf-1.2.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78e20991e5a9a62d27265548c5169ccb2c24187d5584b1189a204d09f68a7cf2
BLAKE2b-256 checksum
How to use checksums
279cde58ad12dddcba704da7dbf66d88105d2d545ded47789ae9398abacf7861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for decryptpdf 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for decryptpdf-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page