Skip to main content

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

Metadata

Release files for pdf-unlocker 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf-unlocker 1.3
File Size Uploaded
pdf-unlocker-1.3.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdf-unlocker 1.3
File Interpreter ABI Platform
pdf_unlocker-1.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / pdf-unlocker-1.3.tar.gz

Download URL pdf-unlocker-1.3.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e31cc42ee8bd1a4664dcf7dec49ee47ff9ec50e4c081a1d4e716e9ff1f79f37d
BLAKE2b-256 checksum
How to use checksums
a56ecaec6bc71b1a99561801469de92891894efe5ec7d05dee7806a9ad378f8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / pdf_unlocker-1.3-py3-none-any.whl

Download URL pdf_unlocker-1.3-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
def40b38a9b2dc615058d2304983b64da870ff63f7433d6c1d8a7a12855ea531
BLAKE2b-256 checksum
How to use checksums
7999c66e78b65f0fce81efd0aca589057bd6096fa26ba3ffe2182428f18cb8e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page