From 69d922e096314117b1c3f5b3645949d4c5fde81e Mon Sep 17 00:00:00 2001 From: Jim Barlow Date: Sun, 2 Feb 2014 22:14:05 -0800 Subject: [PATCH] Check for missing pdftoppm when poppler installed with --disable-splash-output When I upgraded to poppler 0.24.5, pdftoppm was not compiled because the script had --disable-splash-output set for some reason. For OS X Homebrew the solution is: brew uninstall poppler brew install poppler --with-splash-output --- OCRmyPDF.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OCRmyPDF.sh b/OCRmyPDF.sh index 2b831153..13f8c7b4 100755 --- a/OCRmyPDF.sh +++ b/OCRmyPDF.sh @@ -139,8 +139,8 @@ cd "$BASEPATH" ! command -v identify > /dev/null && echo "Please install ImageMagick. Exiting..." && exit $EXIT_MISSING_DEPENDENCY ! command -v parallel > /dev/null && echo "Please install GNU Parallel. Exiting..." && exit $EXIT_MISSING_DEPENDENCY ! command -v pdfimages > /dev/null && echo "Please install poppler-utils. Exiting..." && exit $EXIT_MISSING_DEPENDENCY -! command -v pdftoppm > /dev/null && echo "Please install poppler-utils. Exiting..." && exit $EXIT_MISSING_DEPENDENCY ! command -v pdffonts > /dev/null && echo "Please install poppler-utils. Exiting..." && exit $EXIT_MISSING_DEPENDENCY +! command -v pdftoppm > /dev/null && echo "Please install poppler-utils with the option --enable-splash-output enabled. Exiting..." && exit $EXIT_MISSING_DEPENDENCY [ $PREPROCESS_CLEAN -eq 1 ] && ! command -v unpaper > /dev/null && echo "Please install unpaper. Exiting..." && exit $EXIT_MISSING_DEPENDENCY ! command -v tesseract > /dev/null && echo "Please install tesseract and tesseract-data. Exiting..." && exit $EXIT_MISSING_DEPENDENCY ! command -v python2 > /dev/null && echo "Please install python v2.x. Exiting..." && exit $EXIT_MISSING_DEPENDENCY