2021-02-15 00:21:22 +01:00
|
|
|
# pdf-optimize
|
|
|
|
|
|
|
|
pdf-optimize is a simple script to optimize pdf using ghostscript.
|
|
|
|
You need to have ghoscript installed on your machine.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
```
|
|
|
|
git clone https://gitea.auro.re/otthorn/pdf-optimize
|
|
|
|
cd pdf-optimize
|
2021-02-16 00:54:05 +01:00
|
|
|
chmod +x pdf-optimize.sh
|
2021-02-15 00:27:12 +01:00
|
|
|
sudo mkdir -p /opt/bin/
|
2021-02-16 00:54:05 +01:00
|
|
|
sudo cp pdf-optimize.sh /opt/bin/pdf-optimize
|
2021-02-15 00:21:22 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Don't forget to add `/opt/bin` to your `PATH`.
|
|
|
|
If you can add this line at the end of your `bashrc` (or whatever your use)
|
|
|
|
|
|
|
|
```
|
2021-02-15 00:27:12 +01:00
|
|
|
PATH="$PATH:/opt/bin"
|
2021-02-15 00:21:22 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
You can get help using
|
|
|
|
```
|
|
|
|
pdf-optimize -h
|
|
|
|
```
|
|
|
|
|
|
|
|
|