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.1.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.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdf_password_remover-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 9f920d2b49f78444654a6c0c69326c4912882729c96da656830c2c991d444a44
MD5 b454066a8e2d811de36c668bfdaac9ae
BLAKE2b-256 0415a380bf302ff98714393465498436dd3bbb9686faa8fa9e5bd7b193e5c732

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdf_password_remover-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pdf_password_remover-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af7bae00cdf36fb964e93167a56918a322f1b01ea4276d3aa668c95163bd57cf
MD5 045162cd69b8470f6ad891562bfd6e75
BLAKE2b-256 e55cf60c3fc245f55697ba48702f00272d5637d1ba6ced868ec84a0983ba6ff7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdf_password_remover-0.1.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