浏览代码

Fix to help info

master
父节点
当前提交
6c0adc1f20
共有 2 个文件被更改,包括 17 次插入12 次删除
  1. +15
    -8
      README.md
  2. +2
    -4
      pdfScale.sh

+ 15
- 8
README.md 查看文件

@@ -27,9 +27,9 @@ You will need to install imagemagick and have `identify` available on your `$PAT
## Help info ## Help info
``` ```
$ pdfscale -h $ 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 -h
pdfscale -V pdfscale -V


@@ -38,15 +38,22 @@ 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,
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 -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


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: 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 - Options must be passed before the file names to be parsed
- The output filename is optional. If no file name is passed - The output filename is optional. If no file name is passed
the output file will have the same name/destination of the the output file will have the same name/destination of the
@@ -62,8 +69,8 @@ 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 -m pdfinfo -s 0.80 -v myPdfFile.pdf
pdfscale -v -v -m i -s 0.7 myPdfFile.pdf
pdfscale -h pdfscale -h
``` ```




+ 2
- 4
pdfScale.sh 查看文件

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




VERSION="1.4.5"
VERSION="1.4.6"
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
@@ -80,8 +80,6 @@ Parameters:
-V Prints version to screen and exits -V Prints version to screen and exits
-m <mode> Force a mode of page size detection. -m <mode> Force a mode of page size detection.
Will disable the Adaptive Mode. 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 -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
@@ -112,7 +110,7 @@ Examples:
$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 -m pdfinfo -s 0.80 -v myPdfFile.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 $BASENAME -h
" "
} }


正在加载...
取消
保存