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.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

pdf_unlocker-1.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page