From e99fd516431e146935557f41882cd4729073b120 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 15 Jul 2019 16:10:59 +0100 Subject: fix more eebotopdf bugs; hopefully more resiliant now --- eebotopdf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eebotopdf.sh') diff --git a/eebotopdf.sh b/eebotopdf.sh index 4143571..7fac4c0 100644 --- a/eebotopdf.sh +++ b/eebotopdf.sh @@ -31,7 +31,7 @@ echo "Extracting images from original PDF" pdfimages -png "$1" "$t/$root" || exit 1 for i in "$t/$root"*png; do b=`basename "$i" .png` - $convert "$i" "$t/$b.jpg" || exit 1 + "$convert" "$i" "$t/$b.jpg" || exit 1 rm "$i" done @@ -41,7 +41,7 @@ eeboxmltohocr "$2" "$t/$root" || exit 1 # remove any images that don't have a corresponding hocr for i in "$t/"*jpg; do b=`basename "$i" .jpg` - test -f "$b.hocr" || rm "$i" + test -f "$t/$b.hocr" || rm "$i" done echo "Combining images and text into PDF" -- cgit v1.2.1-24-ge1ad