A powerful Python tool to remove password protection, unlock, and decrypt PDF files using pikepdf
. This tool helps you remove passwords from protected PDF documents, unlock secured PDFs, and decrypt encrypted PDF files easily.
- Remove PDF passwords and security restrictions
- Unlock password-protected PDF files
- Decrypt secured PDF documents
- Simple and easy-to-use command-line interface
- Works with most PDF security methods
- Fast and efficient processing
- Python 3.x
- pikepdf library
- Create a virtual environment (recommended):
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On Unix or MacOS:
source venv/bin/activate
- Install the required packages:
pip install pikepdf
-
Place your password-protected PDF file in the same directory as
unlocker.py
-
Run the script:
python unlocker.py
- The unlocked PDF will be saved in the
temp
folder asunlocked.pdf
- Make sure your PDF file is named correctly as referenced in the script
- The script will create a
temp
directory if it doesn't exist - The unlocked PDF will be saved as
unlocked.pdf
in thetemp
directory
MIT License
vikflow