Fix issue when weave handoff occurs with no OCR font present

If using --tesseract-timeout 0 and any image processing on a file with
more than 100 pages, the weave handoff will occur. Ensure this
works correctly even if no Glyphless font is present.

Closes #347
This commit is contained in:
James R. Barlow
2019-02-10 02:05:59 -08:00
parent df688742d5
commit 19e35db2b7
3 changed files with 42 additions and 12 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ def generate_pdf(
if os.path.exists(prefix + '.txt'):
shutil.move(prefix + '.txt', output_text)
except TimeoutExpired:
page_timedout(log, input_image)
page_timedout(log, input_image, timeout)
use_skip_page(text_only, skip_pdf, output_pdf, output_text)
except CalledProcessError as e:
tesseract_log_output(log, e.output, input_image)