From d9d5b0193ea7a4005956f9e7e673703518828b13 Mon Sep 17 00:00:00 2001 From: Gustavo Neves Date: Tue, 21 Feb 2017 06:32:37 -0300 Subject: [PATCH] Better help messages for imagemagick mode --- README.md | 6 ++++-- pdfScale.sh | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7f24f03..c3970ef 100644 --- a/README.md +++ b/README.md @@ -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 ] [-i] [outfile.pdf] pdfscale -h @@ -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 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 @@ -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 ``` diff --git a/pdfScale.sh b/pdfScale.sh index b072539..9239529 100755 --- a/pdfScale.sh +++ b/pdfScale.sh @@ -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 @@ -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 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 @@ -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 "