mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-11-24 22:17:30 +00:00
Fix ocrPage.sh pdftoppm error on OS X 10.9
This commit is contained in:
parent
4e5e5bb925
commit
d6ea0793b8
4
src/ocrPage.sh
Normal file → Executable file
4
src/ocrPage.sh
Normal file → Executable file
@ -150,7 +150,7 @@ curImgPixmapClean="$TMP_FLD/$page.cleaned.$ext"
|
|||||||
|
|
||||||
# extract current page as image with correct orientation and resolution
|
# extract current page as image with correct orientation and resolution
|
||||||
[ $VERBOSITY -ge $LOG_DEBUG ] && echo "Page $page: Extracting image as $ext file (${dpi} dpi)"
|
[ $VERBOSITY -ge $LOG_DEBUG ] && echo "Page $page: Extracting image as $ext file (${dpi} dpi)"
|
||||||
! pdftoppm -f $page -l $page -r $dpi $opt "$FILE_INPUT_PDF" > "$curImgPixmap" \
|
! pdftoppm -f $page -l $page -r $dpi $opt "$FILE_INPUT_PDF" - > "$curImgPixmap" \
|
||||||
&& echo "Could not extract page $page as $ext from \"$FILE_INPUT_PDF\". Exiting..." && exit $EXIT_OTHER_ERROR
|
&& echo "Could not extract page $page as $ext from \"$FILE_INPUT_PDF\". Exiting..." && exit $EXIT_OTHER_ERROR
|
||||||
|
|
||||||
# if requested deskew image (without changing its size in pixel)
|
# if requested deskew image (without changing its size in pixel)
|
||||||
@ -209,4 +209,4 @@ if [ $KEEP_TMP -eq 0 ]; then
|
|||||||
rm -f "$curImgInfo"
|
rm -f "$curImgInfo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user