feat: shrink PDF size with ps2pdf

This commit is contained in:
alterNERDtive 2024-07-04 11:35:46 +02:00
parent e7b95801e2
commit 50e916091c
Signed by: alterNERDtive
GPG key ID: E07E88A4921AC397

View file

@ -103,8 +103,11 @@ done
# concatenate scanned pages # concatenate scanned pages
echo "Concatenating pages …" echo "Concatenating pages …"
convert "$_tmpdir/*.png" $_file convert "$_tmpdir/*.png" "${_file}"
pushd $_tmpdir
ps2pdf -dPDFSETTINGS=/ebook "${_file}"
popd
( $_silent ) || $_viewer $_file >/dev/null 2>/dev/null ( $_silent ) || $_viewer "${_file}.pdf" >/dev/null 2>/dev/null
_cleanup _cleanup