Sfoglia il codice sorgente

v2.0.5 - Better GS error handling and debugging messages

master
Gustavo Neves 8 anni fa
parent
commit
5599263d84
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      pdfScale.sh

+ 2
- 2
pdfScale.sh Vedi File

@@ -124,7 +124,7 @@ main() {
vprint " Final Status: File created successfully" vprint " Final Status: File created successfully"
else else
vprint " Final Status: Error detected"$'\n'" Exit status: $finalRet" vprint " Final Status: Error detected"$'\n'" Exit status: $finalRet"
printError $'\n'"Ghostscript Debug Info:"$'\n'"$GS_RUN_STATUS"
printError $'\n'"PdfScale: ERROR!"$'\n'"Ghostscript Debug Info:"$'\n'"$GS_RUN_STATUS"
fi fi


return $finalRet return $finalRet
@@ -164,7 +164,7 @@ pageScale() {
local increase=$(echo "scale=0; (($SCALE - 1) * 100)/1" | "$BCBIN") local increase=$(echo "scale=0; (($SCALE - 1) * 100)/1" | "$BCBIN")
vprint " Run Scaling: $increase %" vprint " Run Scaling: $increase %"


GS_RUN_STATUS="$GS_RUN_STATUS$(gsPageScale 2>&1)"
GS_RUN_STATUS="$GS_RUN_STATUS""$(gsPageScale 2>&1)"
return $? # Last command is always returned I think return $? # Last command is always returned I think
} }




Caricamento…
Annulla
Salva