Only do page analysis on pages we will do OCR on

This commit is contained in:
James R. Barlow
2020-06-10 11:33:27 -07:00
parent b6eebadf05
commit 8599400445
3 changed files with 49 additions and 30 deletions
+1
View File
@@ -309,6 +309,7 @@ def run_pipeline(options, *, plugin_manager, api=False):
origin_pdf,
progbar=options.progress_bar,
max_workers=options.jobs if not options.use_threads else 1, # To help debug
check_pages=options.pages,
)
context = PdfContext(options, work_folder, origin_pdf, pdfinfo, plugin_manager)