From f2644ab4086a12e7c7620f450421bef0992c4658 Mon Sep 17 00:00:00 2001 From: Gustavo Arnosti Neves Date: Tue, 21 Feb 2017 05:53:25 -0300 Subject: [PATCH 1/4] New help message and options Updating info for newer releases. --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8ec3fe0..7a8f218 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ Bash Script to scale PDFs from the command line. Uses ghostscript to create a scaled version of the pdf input. The "paper" size does not change, just the elements are resized. -#####Does not require ImageMagick anymore! ## Dependencies The script uses `basename`, `cat`, `grep`, `bc` and `gs` (ghostscript) @@ -20,13 +19,17 @@ sudo yum install ghostscript bc ``` brew install ghostscript ``` +##### ImageMagick +As of version 1.2.7 ImageMagick was reintroduced as an optional way to get the first page size. +You will need to install imagemagick and have `identify` available on your `$PATH` to then use the `-i` parameter. + ## Help info ``` $ pdfscale -h -pdfscale v1.0.8 +pdfscale v1.2.7 -Usage: pdfscale [-v] [-s ] [outfile.pdf] +Usage: pdfscale [-v] [-s ] [-i] [outfile.pdf] pdfscale -h pdfscale -V @@ -35,6 +38,7 @@ 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 -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 From ab7af13454c34a5a517333fa551111b10c63ac2b Mon Sep 17 00:00:00 2001 From: Gustavo Arnosti Neves Date: Tue, 21 Feb 2017 05:54:12 -0300 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a8f218..a101945 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Uses ghostscript to create a scaled version of the pdf input. The "paper" size does not change, just the elements are resized. ## Dependencies -The script uses `basename`, `cat`, `grep`, `bc` and `gs` (ghostscript) +The script uses `basename`, `cat`, `grep`, `bc`, `head` and `gs` (ghostscript) You probably have everything installed already, except for ghostscript ##### apt-get From f3ba93eccb87b4e54d51d2ecf9c4465505a906e4 Mon Sep 17 00:00:00 2001 From: Gustavo Arnosti Neves Date: Tue, 21 Feb 2017 05:55:14 -0300 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a101945..7725e62 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ Uses ghostscript to create a scaled version of the pdf input. The "paper" size does not change, just the elements are resized. ## Dependencies -The script uses `basename`, `cat`, `grep`, `bc`, `head` and `gs` (ghostscript) -You probably have everything installed already, except for ghostscript +The script uses `basename`, `cat`, `grep`, `bc`, `head` and `gs` (ghostscript). +You probably have everything installed already, except for ghostscript. ##### apt-get ``` From dc72d145ce2a7421c79055a7fc4c60a32c54b3bb Mon Sep 17 00:00:00 2001 From: Gustavo Arnosti Neves Date: Tue, 21 Feb 2017 05:55:41 -0300 Subject: [PATCH 4/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7725e62..7f24f03 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ sudo yum install ghostscript bc brew install ghostscript ``` ##### ImageMagick -As of version 1.2.7 ImageMagick was reintroduced as an optional way to get the first page size. -You will need to install imagemagick and have `identify` available on your `$PATH` to then use the `-i` parameter. +As of version 1.2.7 ImageMagick was reintroduced as an optional way to get the first page size. +You will need to install imagemagick and have `identify` available on your `$PATH` to then use the `-i` parameter. ## Help info