OCRmyPDF.sh: new cmd line I/F of hocrTransform.py

Adapted to new new cmd line I/F of hocrTransform.py
This commit is contained in:
fritz-hh
2013-04-11 20:29:10 +02:00
parent ed93878851
commit b041c0080b
+2 -2
View File
@@ -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