From 1d03a6417dce15b179e72f2e259a328d8d8bcedc Mon Sep 17 00:00:00 2001 From: Jim Barlow Date: Sun, 12 Jan 2014 21:30:42 -0800 Subject: [PATCH] Verify that pdftoppm is the Poppler version, not xpdf version --- OCRmyPDF.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OCRmyPDF.sh b/OCRmyPDF.sh index 2e312196..ece41a6f 100644 --- a/OCRmyPDF.sh +++ b/OCRmyPDF.sh @@ -166,6 +166,10 @@ parallelversion=`parallel --minversion 0` && echo "Please install GNU parallel ${reqparallelversion} or newer (currently installed version is ${parallelversion})" && exit $EXIT_MISSING_DEPENDENCY +# ensure pdftoppm is provided by poppler-utils, not the older xpdf version +! pdftoppm -v 2>&1 | grep -q 'Poppler' && echo "Please remove xpdf and install poppler-utils. Exiting..." && $EXIT_MISSING_DEPENDENCY + + # Display the version of the tools if log level is LOG_DEBUG if [ $VERBOSITY -ge $LOG_DEBUG ]; then echo "--------------------------------"