mirror of
https://github.com/tezzytezzy/pdf-batch-compressor.git
synced 2024-09-22 00:00:44 +02:00
Added Help section
This commit is contained in:
parent
f753f20021
commit
0d1803dd63
20
README.md
20
README.md
|
@ -2,11 +2,13 @@
|
||||||
|
|
||||||
## Functionality
|
## Functionality
|
||||||
This nifty utility compresses PDF files via [Ghostscript](https://www.ghostscript.com/) in the folder where this script resides:
|
This nifty utility compresses PDF files via [Ghostscript](https://www.ghostscript.com/) in the folder where this script resides:
|
||||||
|
|
||||||
:one: Create a sub-folder, ./compressed, and put the resultant compressed ones in it,
|
:one: Create a sub-folder, ./compressed, and put the resultant compressed ones in it,
|
||||||
:two: Compress files with any PDF extentions i.e., .pdf, .PDF, .pDf and so on,
|
:two: Compress files with any PDF extentions i.e., .pdf, .PDF, .pDf and so on,
|
||||||
:three: Optional compression parameter to be supplied, namely, prepress, ebook (default) and screen - in the descending order of quality, and
|
:three: Optional compression parameter to be supplied, namely, prepress, ebook (default) and screen - in the descending order of quality, and
|
||||||
:four: Log output with the compressed file names and any error message in the sub-folder
|
:four: Log output with the compressed file names and any error message in the sub-folder
|
||||||
N.B. Make sure to make this script excutable via `chmod +x` or `755`, after downloading!
|
|
||||||
|
N.B. Make sure to make this script excutable via `chmod +x` or `chmod 755`, after downloading!
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
```bash
|
```bash
|
||||||
|
@ -15,3 +17,19 @@ GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)
|
||||||
(base) to@mx:~$ gs --help
|
(base) to@mx:~$ gs --help
|
||||||
GPL Ghostscript 9.26 (2018-11-20)
|
GPL Ghostscript 9.26 (2018-11-20)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Help
|
||||||
|
```bash
|
||||||
|
tezzy@HP:~/Desktop$ ./pdf_batch_compressor.sh -h
|
||||||
|
|
||||||
|
NAME
|
||||||
|
Compress all the PDF files in the same folder as this script resides via
|
||||||
|
Ghostscript and put them into a newly created "compressed" sub-folder
|
||||||
|
SYNOPSIS
|
||||||
|
pdf_batch_compressor.sh [OPTION]
|
||||||
|
DESCRIPTION
|
||||||
|
-s, --setting=SETTING
|
||||||
|
override default ebook; prepress, ebook or screen (in the descending order of quality)
|
||||||
|
-h, --help
|
||||||
|
display this help and exit
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user