feat: shrink PDF size with ps2pdf
This commit is contained in:
parent
e7b95801e2
commit
50e916091c
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue