You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
897 B
Markdown

7 years ago
# pdf-unlock #
7 years ago
7 years ago
__pdf_unlock.py__ removes security features from pdfs, to allow unrestricted printing and copying of context.
7 years ago
## Installation ##
7 years ago
[Ghostscript](https://ghostscript.com) and [Poppler](https://poppler.freedesktop.org) are required.
7 years ago
7 years ago
Windows users will have to add the binary directories to the `PATH` environment variable manually, eg:
7 years ago
7 years ago
```
C:\Program Files\gs\gs9.21\bin
C:\Program Files\poppler\bin
```
7 years ago
## Usage ##
7 years ago
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`