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.3.0.tar.gz (4.2 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.3.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for pdf_password_remover-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e1027b433e4a0464854091b819485ea614c32ba1e32c956c6fb8b2ace5b0d97c
MD5 3b80ad848421687910c91b625f25ca8c
BLAKE2b-256 010f1d064b971ece6217cbc2100f0bb13e64a071f3901159afbe31dee6228259

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pdf_password_remover-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57d9f56bd287030371c1ceffaa72ba6055feb1a113f4719667878a04e9a6ead6
MD5 9185aac7336049304c0ec8d3a59052af
BLAKE2b-256 109a9ca07f71f01df5068723f027669f5266b426fcb58cb1c10ba548be94fb3f

See more details on using hashes here.

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

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