From b041c0080b4a85b7c75977d38e45cb461e540abe Mon Sep 17 00:00:00 2001 From: fritz-hh Date: Thu, 11 Apr 2013 20:29:10 +0200 Subject: [PATCH] OCRmyPDF.sh: new cmd line I/F of hocrTransform.py Adapted to new new cmd line I/F of hocrTransform.py --- OCRmyPDF.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OCRmyPDF.sh b/OCRmyPDF.sh index 9d82673d..b4f903cb 100644 --- a/OCRmyPDF.sh +++ b/OCRmyPDF.sh @@ -37,8 +37,8 @@ while [ $page -le $numpages ]; do # embed text and image to new pdf file echo "Page $page: Embedding text in PDF" - python hocrTransform.py "${tmp}/${page}.hocr" "${tmp}/${page}.forocr.ppm" "${tmp}/${page}-ocred.pdf" - + python hocrTransform.py -r 300 -i "${tmp}/${page}.forocr.ppm" "${tmp}/${page}.hocr" "${tmp}/${page}-ocred.pdf" + # go to next page of the pdf page=$(($page+1)) done