Browse Source

Fix to help info

master
parent
commit
6c0adc1f20
2 changed files with 17 additions and 12 deletions
  1. +15
    -8
      README.md
  2. +2
    -4
      pdfScale.sh

+ 15
- 8
README.md View File

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

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

@@ -38,15 +38,22 @@ 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,
instead of postscript method
-c Use cat + grep to get page size,
instead of postscript method
-m <mode> Force a mode of page size detection.
Will disable the Adaptive Mode.
-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

Modes:
a, adaptive Default mode, tries all the methods below
c, cat+grep Forces the use of the cat + grep method
m, mdls Forces the use of MacOS Quartz mdls
p, pdfinfo Forces the use of Linux PdfInfo
i, identify Forces the use of ImageMagick's Identify

Notes:
- Page size detection will try different modes until it gets
a page size, or you can force a mode with -m 'mode'
- Options must be passed before the file names to be parsed
- The output filename is optional. If no file name is passed
the output file will have the same name/destination of the
@@ -62,8 +69,8 @@ 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 -m pdfinfo -s 0.80 -v myPdfFile.pdf
pdfscale -v -v -m i -s 0.7 myPdfFile.pdf
pdfscale -h
```



+ 2
- 4
pdfScale.sh View File

@@ -24,7 +24,7 @@
###################################################


VERSION="1.4.5"
VERSION="1.4.6"
SCALE="0.95" # scaling factor (0.95 = 95%, e.g.)
VERBOSE=0 # verbosity Level
BASENAME="$(basename $0)" # simplified name of this script
@@ -80,8 +80,6 @@ Parameters:
-V Prints version to screen and exits
-m <mode> Force a mode of page size detection.
Will disable the Adaptive Mode.
-c Use cat + grep to get page size,
instead of postscript 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
@@ -112,7 +110,7 @@ Examples:
$BASENAME -v -v myPdfFile.pdf
$BASENAME -s 0.85 myPdfFile.pdf myScaledPdf.pdf
$BASENAME -m pdfinfo -s 0.80 -v myPdfFile.pdf
$BASENAME -v -v -s 0.7 myPdfFile.pdf
$BASENAME -v -v -m i -s 0.7 myPdfFile.pdf
$BASENAME -h
"
}


Loading…
Cancel
Save