Skip to main content

Remove passwords from PDF files

Project description

pdfstrip

Remove passwords from PDF files.

Install

pipx install pdfstrip

Or with uv:

uv tool install pdfstrip

Usage

# Unlock a single file
pdfstrip secret.pdf -p mypassword

# Unlock to a specific output
pdfstrip secret.pdf -p mypassword -o unlocked.pdf

# Unlock in place
pdfstrip secret.pdf -p mypassword --in-place

# Batch unlock a directory
pdfstrip ./pdfs/ -p mypassword --skip-unprotected

# Dry run
pdfstrip secret.pdf -p mypassword --dry-run

Options

Flag Short Description
--password -p PDF password
--output -o Output file path (single file only)
--output-dir -d Output directory for unlocked files
--in-place -i Overwrite original files
--force -f Overwrite existing output files
--skip-unprotected -s Skip files that are not encrypted
--dry-run -n Show what would be done without writing

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

pdfstrip-0.1.0.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

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

pdfstrip-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdfstrip-0.1.0.tar.gz
  • Upload date:
  • Size: 37.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pdfstrip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 964cb6ea71ce7f147542a86e5701fedfdddb38c2045857db93d590afa849100d
MD5 afc8124155c477868bfd31bede27cfb3
BLAKE2b-256 78d087c40c6f74e367976b645459ee196587267b4b4134906a5863b562749d04

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdfstrip-0.1.0.tar.gz:

Publisher: publish.yml on mwalterskirchen/pdfstrip

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

File details

Details for the file pdfstrip-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pdfstrip-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pdfstrip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07649d66cd09167b9bdd8c39e863025d20f624ae83ab1c463a59b80081864285
MD5 41d4e41da607f65ed2c08d0fa9241194
BLAKE2b-256 665d10e75c41f1cf54a68d06e571bbbd7fce4da0929f2fdd65cc69105b50189a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdfstrip-0.1.0-py3-none-any.whl:

Publisher: publish.yml on mwalterskirchen/pdfstrip

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