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.

56 lines
1.1 KiB
Markdown

# pdfunlock #
7 years ago
**pdfunlock** 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/) must be in your `PATH` environment variable.
7 years ago
7 years ago
**Windows**:
https://www.ghostscript.com/download
http://blog.alivate.com.au/poppler-windows
**Linux**:
7 years ago
```
sudo apt install ghostscript
sudo apt install poppler-utils
```
7 years ago
**Mac**:
7 years ago
```
brew install ghostscript
brew install poppler
```
7 years ago
Then
7 years ago
7 years ago
```
git clone http://git.wrl.unsw.edu.au:3000/danh/pdfunlock.git
pip install -e pdfunlock
7 years ago
```
7 years ago
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':
7 years ago
```
pdfunlock pdf_folder
```
7 years ago
Search for pdfs inside 'pdf_folder', then unlock the pdfs and overwrite
the original versions.
7 years ago
```
pdfunlock pdf_folder -o
```
7 years ago
Search recursively for pdfs inside 'pdf_folder' and all subfolders,
then unlock the pdfs and overwrite the original versions.
7 years ago
```
pdfunlock pdf_folder -o -r
```