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 "--------------------------------"