diff --git a/optipdf b/optipdf index 2468a64..859bbda 100755 --- a/optipdf +++ b/optipdf @@ -4,6 +4,7 @@ PRESERVE_TIMESTAMP=0 LOSSY=0 KEEP_BACKUP_SUFFIX=.old-unoptimized +FORCE=0 TEMP_FILES=() cleanup() { @@ -140,6 +141,11 @@ if [[ $LOSSY -ne 0 ]]; then --optimize-images ) fi +if [[ $FORCE -ne 0 ]]; then + QPDF_ARGS+=( + --warning-exit-0 + ) +fi ERRORS=0 FREED_TOTAL=0