mirror of
https://codeberg.org/h3xx/optipdf
synced 2024-08-15 00:03:23 +00:00
Add support for ignoring errors
This commit is contained in:
parent
38411917a9
commit
191d91a1a8
1 changed files with 6 additions and 0 deletions
6
optipdf
6
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
|
||||
|
|
Loading…
Reference in a new issue