Skip to content

Commit

Permalink
Better help messages for imagemagick mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tavinus committed Feb 21, 2017
1 parent 250ff73 commit d9d5b01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You will need to install imagemagick and have `identify` available on your `$PAT
## Help info
```
$ pdfscale -h
pdfscale v1.2.7
pdfscale v1.2.10
Usage: pdfscale [-v] [-s <factor>] [-i] <inFile.pdf> [outfile.pdf]
pdfscale -h
Expand All @@ -38,7 +38,8 @@ Parameters:
Use twice for even more information
-h Print this help to screen and exits
-V Prints version to screen and exits
-i Use imagemagick to get page size, defaults false
-i Use imagemagick to get page size,
instead of cat + grep method
-s <factor> Changes the scaling factor, defaults to 0.95
MUST be a number bigger than zero.
Eg. -s 0.8 for 80% of the original size
Expand All @@ -59,6 +60,7 @@ Examples:
pdfscale myPdfFile.pdf myScaledPdf
pdfscale -v -v myPdfFile.pdf
pdfscale -s 0.85 myPdfFile.pdf myScaledPdf.pdf
pdfscale -i -s 0.80 -v myPdfFile.pdf
pdfscale -v -v -s 0.7 myPdfFile.pdf
pdfscale -h
```
Expand Down
6 changes: 4 additions & 2 deletions pdfScale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a


VERSION="1.2.9"
VERSION="1.2.10"
SCALE="0.95" # scaling factor (0.95 = 95%, e.g.)
VERBOSE=0 # verbosity Level
BASENAME="$(basename $0)" # simplified name of this script
Expand Down Expand Up @@ -52,7 +52,8 @@ Parameters:
Use twice for even more information
-h Print this help to screen and exits
-V Prints version to screen and exits
-i Use imagemagick to get page size, defaults false
-i Use imagemagick to get page size,
instead of cat + grep method
-s <factor> Changes the scaling factor, defaults to 0.95
MUST be a number bigger than zero.
Eg. -s 0.8 for 80% of the original size
Expand All @@ -73,6 +74,7 @@ Examples:
$BASENAME myPdfFile.pdf myScaledPdf
$BASENAME -v -v myPdfFile.pdf
$BASENAME -s 0.85 myPdfFile.pdf myScaledPdf.pdf
$BASENAME -i -s 0.80 -v myPdfFile.pdf
$BASENAME -v -v -s 0.7 myPdfFile.pdf
$BASENAME -h
"
Expand Down

0 comments on commit d9d5b01

Please sign in to comment.