Skip to main content

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.

PyPI version Builds and Tests License: MIT

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

  1. Clone the repository:
    git clone <repo-url>
    cd pdf-password-remover
    
  2. 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


Download files

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

Source Distribution

pdf_password_remover-0.2.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

pdf_password_remover-0.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file pdf_password_remover-0.2.0.tar.gz.

File metadata

  • Download URL: pdf_password_remover-0.2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pdf_password_remover-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5c2f73e584d4e8f1e17967c561c687443faa711671a0c2fdd493a29ad75298c9
MD5 2978ea55f5ad3a433a3d0dfc55a940ae
BLAKE2b-256 7c6127349ca0cf2aa4abf9fe12ae4c686e40f20aee2c3e8f623b5f1de05db41e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdf_password_remover-0.2.0.tar.gz:

Publisher: publish.yml on thecasualdev17/pdf-password-remover

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

File details

Details for the file pdf_password_remover-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pdf_password_remover-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 145c7d89d000dc3258e3d34507e4952fba882fe5923e8768d0014abf892deed3
MD5 55cc08f124f76d8411dd437fc0c6a74e
BLAKE2b-256 bc2942521340ab3324e868dfd0ca7a0e8b343865f7194c067b9450891321591c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdf_password_remover-0.2.0-py3-none-any.whl:

Publisher: publish.yml on thecasualdev17/pdf-password-remover

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