Dan Howe 7226b17165 | 7 years ago | |
---|---|---|
scripts | 7 years ago | |
README.md | 7 years ago |
README.md
pdf-unlock
pdf_unlock.py removes security features from pdfs, to allow unrestricted printing and copying of context.
Installation
Ghostscript and Poppler are required.
Windows:
https://www.ghostscript.com/download
http://blog.alivate.com.au/poppler-windows
Linux:
sudo apt install ghostscript
sudo apt install poppler-utils
Mac:
brew install ghostscript
brew install poppler
Then
pip install tqdm
Usage
Search for pdfs inside 'pdf_folder', then create new unlocked versions of the pdfs with the the suffix '-unlocked.pdf':
> python pdf_unlock.py pdf_folder
Search for pdfs inside 'pdf_folder', then unlock the pdfs and overwrite the original versions.
> python pdf_unlock.py pdf_folder -o
Search recursively for pdfs inside 'pdf_folder' and all subfolders, then unlock the pdfs and overwrite the original versions.
> python pdf_unlock.py pdf_folder -o -r