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.
30 lines
995 B
Markdown
30 lines
995 B
Markdown
# pdf-unlock #
|
|
|
|
__pdf_unlock__ removes security features from pdfs.
|
|
|
|
## Installation ##
|
|
|
|
[Ghostscript](https://ghostscript.com) is required. When installing Ghostscript, make sure there is an executable called `gs` in your path. This should happen automatically with Linux, but Windows users will have to add the path to Ghostscript to the `PATH` environment variable manually, eg:
|
|
|
|
`C:\Program Files\gs\gs9.21\bin`
|
|
|
|
Then the Ghostscript executable `gswin64.exe` should be copied to a new executable called `gs.exe`.
|
|
|
|
## 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`
|