A Python based CLI tool to remove passwords from PDF files.
Project description
PDF Password Remover
A Python-based CLI tool to remove passwords from PDF files. Supports both single files and batch processing of directories. Includes an optional GUI file picker for convenience.
Features
- ✅Remove passwords from individual PDF files or all PDFs in a directory
- ✅Optional GUI file/directory picker
- ✅Output unlocked PDFs to a specified directory
- ✅Simple command-line interface
Installation
From PyPI
Install the latest release from PyPI:
pip install pdf-password-remover
From Source
- Clone the repository:
git clone <repo-url> cd pdf-password-remover
- Install dependencies using Poetry:
poetry install
Usage
Run the CLI tool using Poetry:
poetry run pdf-password-remover remove-password [INPUT_PATH] [PASSWORD] [--output OUTPUT_DIR]
Or, if installed via pip:
pdf-password-remover remove-password [INPUT_PATH] [PASSWORD] [--output OUTPUT_DIR]
INPUT_PATH: Path to the password-protected PDF file or directory (optional, will prompt if omitted)PASSWORD: Password for the PDF file(s) (optional, will prompt if omitted)--output/-o: Directory to save the unlocked PDF file(s) (optional)
Example
Remove password from a single file:
pdf-password-remover remove-password myfile.pdf mypassword
Batch process a directory and specify output directory:
pdf-password-remover remove-password ./pdfs mypassword --output ./unlocked
If you omit arguments, the tool will prompt you interactively and offer a GUI picker.
Development
- Source code is in
src/pdf_password_remover/ - Main CLI entry point:
main.py - PDF utilities:
pdf_utils.py
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdf_password_remover-0.3.0.tar.gz.
File metadata
- Download URL: pdf_password_remover-0.3.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1027b433e4a0464854091b819485ea614c32ba1e32c956c6fb8b2ace5b0d97c
|
|
| MD5 |
3b80ad848421687910c91b625f25ca8c
|
|
| BLAKE2b-256 |
010f1d064b971ece6217cbc2100f0bb13e64a071f3901159afbe31dee6228259
|
Provenance
The following attestation bundles were made for pdf_password_remover-0.3.0.tar.gz:
Publisher:
publish.yml on thecasualdev17/pdf-password-remover
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdf_password_remover-0.3.0.tar.gz -
Subject digest:
e1027b433e4a0464854091b819485ea614c32ba1e32c956c6fb8b2ace5b0d97c - Sigstore transparency entry: 226675094
- Sigstore integration time:
-
Permalink:
thecasualdev17/pdf-password-remover@9def25e3e7c02b0f98e9bfb2572a659d0d2854f0 -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/thecasualdev17
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9def25e3e7c02b0f98e9bfb2572a659d0d2854f0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pdf_password_remover-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pdf_password_remover-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d9f56bd287030371c1ceffaa72ba6055feb1a113f4719667878a04e9a6ead6
|
|
| MD5 |
9185aac7336049304c0ec8d3a59052af
|
|
| BLAKE2b-256 |
109a9ca07f71f01df5068723f027669f5266b426fcb58cb1c10ba548be94fb3f
|
Provenance
The following attestation bundles were made for pdf_password_remover-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on thecasualdev17/pdf-password-remover
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdf_password_remover-0.3.0-py3-none-any.whl -
Subject digest:
57d9f56bd287030371c1ceffaa72ba6055feb1a113f4719667878a04e9a6ead6 - Sigstore transparency entry: 226675095
- Sigstore integration time:
-
Permalink:
thecasualdev17/pdf-password-remover@9def25e3e7c02b0f98e9bfb2572a659d0d2854f0 -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/thecasualdev17
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9def25e3e7c02b0f98e9bfb2572a659d0d2854f0 -
Trigger Event:
release
-
Statement type: