Skip to main content

No project description provided

Project description

PDF Unlocker

This is a simple Python script that converts PDF files into versions without any permission restrictions

This script utilizes pikepdf to make a clean copy of each page

Usage

Install the Requirements

To install the necessary requirements, run the following command:

pip install pdf-unlocker

Typical Usage

pdf-unlocker input.pdf -o output.pdf
pdf-unlocker input.pdf -o output.pdf --password 1234
pdf-unlocker input.pdf -o output.pdf --stdin-password
echo 1234 | pdf-unlocker input.pdf -o output.pdf --stdin-password
pdf-unlocker input.pdf -b

The resulting PDF file should not have any permission restrictions, nor should it require a password for usage (the password is required only to read the source PDF)

Arguments

Argument Description
(Required) input PDF file
-p PASSWORD --password PASSWORD password for the input PDF file
--stdin-password read password from stdin (this will override the --password or -p argument)
-o OUTPUT --output OUTPUT output PDF file
default: output.pdf
-b --backup the original file will be saved with the extension .bak, and the default output will be the original one

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-unlocker-1.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

pdf_unlocker-1.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file pdf-unlocker-1.3.tar.gz.

File metadata

  • Download URL: pdf-unlocker-1.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pdf-unlocker-1.3.tar.gz
Algorithm Hash digest
SHA256 e31cc42ee8bd1a4664dcf7dec49ee47ff9ec50e4c081a1d4e716e9ff1f79f37d
MD5 b6aaf9cfec8f7a0d972c7e01e8d5169d
BLAKE2b-256 a56ecaec6bc71b1a99561801469de92891894efe5ec7d05dee7806a9ad378f8a

See more details on using hashes here.

File details

Details for the file pdf_unlocker-1.3-py3-none-any.whl.

File metadata

  • Download URL: pdf_unlocker-1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pdf_unlocker-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 def40b38a9b2dc615058d2304983b64da870ff63f7433d6c1d8a7a12855ea531
MD5 6828217d55728665b5ff1a27642daf27
BLAKE2b-256 7999c66e78b65f0fce81efd0aca589057bd6096fa26ba3ffe2182428f18cb8e5

See more details on using hashes here.

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