2020#
2121# ###############################################################
2222
23- VERSION=" 2.5.6 "
23+ VERSION=" 2.5.7 "
2424
2525
2626# ##################### EXTERNAL PROGRAMS #######################
@@ -230,7 +230,7 @@ printPDFSizes() {
230230 printf ' %s\n' " ------------+-----------------------------"
231231 printf ' %s\n' " | WIDTH x HEIGHT"
232232 printf " Points | %+8s x %-8s\n" " $PGWIDTH " " $PGHEIGHT "
233- printf " Milimeters | %+8s x %-8s\n" " $( pointsToMilimeters $PGWIDTH ) " " $( pointsToMilimeters $PGHEIGHT ) "
233+ printf " Millimeters | %+8s x %-8s\n" " $( pointsToMillimeters $PGWIDTH ) " " $( pointsToMillimeters $PGHEIGHT ) "
234234 printf " Inches | %+8s x %-8s\n" " $( pointsToInches $PGWIDTH ) " " $( pointsToInches $PGHEIGHT ) "
235235 exit $EXIT_SUCCESS
236236 fi
@@ -1158,8 +1158,8 @@ parsePaperResize() {
11581158 RESIZE_PAPER_TYPE=" custom"
11591159 CUSTOM_RESIZE_PAPER=$TRUE
11601160 if isMilimeter " ${customPaper[1]} " ; then
1161- RESIZE_WIDTH=" $( milimetersToPoints " ${customPaper[2]} " ) "
1162- RESIZE_HEIGHT=" $( milimetersToPoints " ${customPaper[3]} " ) "
1161+ RESIZE_WIDTH=" $( millimetersToPoints " ${customPaper[2]} " ) "
1162+ RESIZE_HEIGHT=" $( millimetersToPoints " ${customPaper[3]} " ) "
11631163 elif isInch " ${customPaper[1]} " ; then
11641164 RESIZE_WIDTH=" $( inchesToPoints " ${customPaper[2]} " ) "
11651165 RESIZE_HEIGHT=" $( inchesToPoints " ${customPaper[3]} " ) "
@@ -1377,8 +1377,8 @@ parseCropbox() {
13771377 CROPBOX_PAPER_TYPE=" custom"
13781378 CUSTOM_CROPBOX_PAPER=$TRUE
13791379 if isMilimeter " ${customPaper[1]} " ; then
1380- CROPBOX_WIDTH=" $( milimetersToPoints " ${customPaper[2]} " ) "
1381- CROPBOX_HEIGHT=" $( milimetersToPoints " ${customPaper[3]} " ) "
1380+ CROPBOX_WIDTH=" $( millimetersToPoints " ${customPaper[2]} " ) "
1381+ CROPBOX_HEIGHT=" $( millimetersToPoints " ${customPaper[3]} " ) "
13821382 elif isInch " ${customPaper[1]} " ; then
13831383 CROPBOX_WIDTH=" $( inchesToPoints " ${customPaper[2]} " ) "
13841384 CROPBOX_HEIGHT=" $( inchesToPoints " ${customPaper[3]} " ) "
@@ -1822,7 +1822,7 @@ isNotValidMeasure() {
18221822
18231823# Returns $TRUE if $1 is a valid milimeter string, $FALSE otherwise
18241824isMilimeter () {
1825- [[ " $1 " = ' mm' || " $1 " = ' milimeters ' || " $1 " = ' milimeter' ]] && return $TRUE
1825+ [[ " $1 " = ' mm' || " $1 " = ' millimeters ' || " $1 " = ' milimeter' ]] && return $TRUE
18261826 return $FALSE
18271827}
18281828
@@ -1912,7 +1912,7 @@ uppercase() {
19121912}
19131913
19141914# Prints the postscript points rounded equivalent from $1 mm
1915- milimetersToPoints () {
1915+ millimetersToPoints () {
19161916 local pts=$( echo " scale=8; $1 * 72 / 25.4" | " $BCBIN " )
19171917 printf ' %.0f' " $pts " # Print rounded conversion
19181918}
@@ -1924,7 +1924,7 @@ inchesToPoints() {
19241924}
19251925
19261926# Prints the mm equivalent from $1 postscript points
1927- pointsToMilimeters () {
1927+ pointsToMillimeters () {
19281928 local pts=$( echo " scale=8; $1 / 72 * 25.4" | " $BCBIN " )
19291929 printf ' %.0f' " $pts " # Print rounded conversion
19301930}
@@ -2346,18 +2346,18 @@ Standard Paper Names: (case-insensitive)
23462346 HALFLETTER HAGAKI
23472347
23482348Custom Paper Size:
2349- - Paper size can be set manually in Milimeters , Inches or Points
2349+ - Paper size can be set manually in Millimeters , Inches or Points
23502350 - Custom paper definition MUST be quoted into a single parameter
23512351 - Actual size is applied in points (mms and inches are transformed)
2352- - Measurements: mm, mms, milimeters
2352+ - Measurements: mm, mms, millimeters
23532353 pt, pts, points
23542354 in, inch, inches
23552355 Use: $PDFSCALE_NAME -r 'custom <measurement> <width> <height>'
23562356 Ex: $PDFSCALE_NAME -r 'custom mm 300 300'
23572357
23582358Using Source Paper Size: (no-resizing)
2359- - Wildcard 'source' is used used to keep paper size the same as the input
2360- - Usefull to run Auto-Rotation without resizing
2359+ - Wildcard 'source' is used to keep paper size the same as the input
2360+ - Useful to run Auto-Rotation without resizing
23612361 - Eg. $PDFSCALE_NAME -r source ./input.pdf
23622362
23632363Backgrounding: (paint a background)
0 commit comments