Ver código fonte

Better help messages for imagemagick mode

master
Gustavo Neves 8 anos atrás
pai
commit
d9d5b0193e
2 arquivos alterados com 8 adições e 4 exclusões
  1. +4
    -2
      README.md
  2. +4
    -2
      pdfScale.sh

+ 4
- 2
README.md Ver arquivo

@@ -27,7 +27,7 @@ You will need to install imagemagick and have `identify` available on your `$PAT
## Help info ## Help info
``` ```
$ pdfscale -h $ pdfscale -h
pdfscale v1.2.7
pdfscale v1.2.10


Usage: pdfscale [-v] [-s <factor>] [-i] <inFile.pdf> [outfile.pdf] Usage: pdfscale [-v] [-s <factor>] [-i] <inFile.pdf> [outfile.pdf]
pdfscale -h pdfscale -h
@@ -38,7 +38,8 @@ 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
-i Use imagemagick to get page size,
instead of cat + grep method
-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
@@ -59,6 +60,7 @@ Examples:
pdfscale myPdfFile.pdf myScaledPdf pdfscale myPdfFile.pdf myScaledPdf
pdfscale -v -v myPdfFile.pdf pdfscale -v -v myPdfFile.pdf
pdfscale -s 0.85 myPdfFile.pdf myScaledPdf.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 -v -v -s 0.7 myPdfFile.pdf
pdfscale -h pdfscale -h
``` ```


+ 4
- 2
pdfScale.sh Ver arquivo

@@ -11,7 +11,7 @@
# And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a # 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.) SCALE="0.95" # scaling factor (0.95 = 95%, e.g.)
VERBOSE=0 # verbosity Level VERBOSE=0 # verbosity Level
BASENAME="$(basename $0)" # simplified name of this script BASENAME="$(basename $0)" # simplified name of this script
@@ -52,7 +52,8 @@ 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
-i Use imagemagick to get page size,
instead of cat + grep method
-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
@@ -73,6 +74,7 @@ Examples:
$BASENAME myPdfFile.pdf myScaledPdf $BASENAME myPdfFile.pdf myScaledPdf
$BASENAME -v -v myPdfFile.pdf $BASENAME -v -v myPdfFile.pdf
$BASENAME -s 0.85 myPdfFile.pdf myScaledPdf.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 -v -v -s 0.7 myPdfFile.pdf
$BASENAME -h $BASENAME -h
" "


Carregando…
Cancelar
Salvar