|
|
@ -66,7 +66,7 @@ for f in "$temp_pages_dir"/page-*.jpg; do
|
|
|
|
gs -dNOSAFER -sDEVICE=pdfwrite -o "${f/.jpg/.pdf}" /usr/share/ghostscript/lib/viewjpeg.ps -c "($f)" viewJPEG
|
|
|
|
gs -dNOSAFER -sDEVICE=pdfwrite -o "${f/.jpg/.pdf}" /usr/share/ghostscript/lib/viewjpeg.ps -c "($f)" viewJPEG
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
logf "Merging compressed pages to a single PDF ()\n"
|
|
|
|
logf "Merging compressed pages to a single PDF\n"
|
|
|
|
pdfunite "$temp_pages_dir"/page-*.pdf $output_file
|
|
|
|
pdfunite "$temp_pages_dir"/page-*.pdf $output_file
|
|
|
|
|
|
|
|
|
|
|
|
rm -r "$temp_pages_dir"
|
|
|
|
rm -r "$temp_pages_dir"
|
|
|
|