Skip to content

Commit

Permalink
v2.4.2 - Backgrounding3; Code cleanup; minor fix to background mode d…
Browse files Browse the repository at this point in the history
…etection
  • Loading branch information
tavinus committed Aug 9, 2018
1 parent b1b9444 commit f7fd05c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pdfScale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a


VERSION="2.4.1"
VERSION="2.4.2"


###################### EXTERNAL PROGRAMS #######################
Expand Down Expand Up @@ -1289,6 +1289,7 @@ parseRGBBackground() {
exit $EXIT_INVALID_OPTION
}


################### PDF PAGE SIZE DETECTION ####################

################################################################
Expand Down Expand Up @@ -1840,13 +1841,15 @@ isNotAdaptiveMode() {
noBackground() {
[[ "$BACKGROUNDTYPE" == "CMYK" ]] && return $FALSE
[[ "$BACKGROUNDTYPE" == "RGB" ]] && return $FALSE
[[ "$BACKGROUNDTYPE" == "GRAY" ]] && return $FALSE
return $TRUE
}

# Returns $TRUE if we need to create a background
hasBackground() {
[[ "$BACKGROUNDTYPE" == "CMYK" ]] && return $TRUE
[[ "$BACKGROUNDTYPE" == "RGB" ]] && return $TRUE
[[ "$BACKGROUNDTYPE" == "GRAY" ]] && return $TRUE
return $FALSE
}

Expand Down Expand Up @@ -1996,6 +1999,7 @@ shouldAskUser() {
return $TRUE
}


###################### PRINTING TO SCREEN ######################

# Prints version
Expand Down

0 comments on commit f7fd05c

Please sign in to comment.