pdf-optimize/README.md

31 lines
669 B
Markdown
Raw Normal View History

2021-02-15 00:21:22 +01:00
# pdf-optimize
2021-02-19 01:04:21 +01:00
[![Build Status](https://drone.auro.re/api/badges/otthorn/pdf-optimize/status.svg)](https://drone.auro.re/otthorn/pdf-optimize)
2021-02-15 00:21:22 +01:00
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
chmod +x pdf-optimize.sh
2021-02-15 00:27:12 +01:00
sudo mkdir -p /opt/bin/
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
```