Pārlūkot izejas kodu

New help message and options

Updating info for newer releases.
master
Gustavo Arnosti Neves pirms 8 gadiem
committed by GitHub
vecāks
revīzija
f2644ab408
1 mainītis faili ar 7 papildinājumiem un 3 dzēšanām
  1. +7
    -3
      README.md

+ 7
- 3
README.md Parādīt failu

@@ -2,7 +2,6 @@
Bash Script to scale PDFs from the command line. Bash Script to scale PDFs from the command line.
Uses ghostscript to create a scaled version of the pdf input. Uses ghostscript to create a scaled version of the pdf input.
The "paper" size does not change, just the elements are resized. The "paper" size does not change, just the elements are resized.
#####Does not require ImageMagick anymore!


## Dependencies ## Dependencies
The script uses `basename`, `cat`, `grep`, `bc` and `gs` (ghostscript) The script uses `basename`, `cat`, `grep`, `bc` and `gs` (ghostscript)
@@ -20,13 +19,17 @@ sudo yum install ghostscript bc
``` ```
brew install ghostscript brew install ghostscript
``` ```
##### ImageMagick
As of version 1.2.7 ImageMagick was reintroduced as an optional way to get the first page size.
You will need to install imagemagick and have `identify` available on your `$PATH` to then use the `-i` parameter.



## Help info ## Help info
``` ```
$ pdfscale -h $ pdfscale -h
pdfscale v1.0.8
pdfscale v1.2.7


Usage: pdfscale [-v] [-s <factor>] <inFile.pdf> [outfile.pdf]
Usage: pdfscale [-v] [-s <factor>] [-i] <inFile.pdf> [outfile.pdf]
pdfscale -h pdfscale -h
pdfscale -V pdfscale -V


@@ -35,6 +38,7 @@ Parameters:
Use twice for even more information Use twice for even more information
-h Print this help to screen and exits -h Print this help to screen and exits
-V Prints version to screen and exits -V Prints version to screen and exits
-i Use imagemagick to get page size, defaults false
-s <factor> Changes the scaling factor, defaults to 0.95 -s <factor> Changes the scaling factor, defaults to 0.95
MUST be a number bigger than zero. MUST be a number bigger than zero.
Eg. -s 0.8 for 80% of the original size Eg. -s 0.8 for 80% of the original size


Notiek ielāde…
Atcelt
Saglabāt