From bdc5b49c2b358707ef79449ab92ae4bbee279dab Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 2 Sep 2013 16:35:12 -0400 Subject: [PATCH] Fix hv-scan to configure pdf with US letter format --- scripts/hv-scan | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/hv-scan b/scripts/hv-scan index 6398599..d1b5628 100755 --- a/scripts/hv-scan +++ b/scripts/hv-scan @@ -7,6 +7,7 @@ color_mode="Gray" resolution="200" extension="pdf" scan_area="--scan-area Letter" +resize_pdf="-page Letter" PROG_NAME=$(basename $0) print_usage() @@ -33,6 +34,7 @@ while getopts "chjpq:r:" flag ;do ;; j) extension="jpg" + resize_pdf="" ;; h) print_usage @@ -74,4 +76,5 @@ fi src=${1} scanimage --mode ${color_mode} --resolution ${resolution} ${scan_area} | \ - convert - -compress jpeg -quality ${jpeg_quality} ${src}.${extension} + convert - -compress jpeg -quality ${jpeg_quality} ${resize_pdf} \ + ${src}.${extension} -- 2.20.1