From b1f79e4d9797a1d2c7ab84f491d02ae4ca2db9f8 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 12 May 2017 13:24:30 -0700 Subject: [PATCH] Disable other use redo_ocr --- ocrmypdf/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ocrmypdf/__main__.py b/ocrmypdf/__main__.py index 83befef8..6d1d0b07 100755 --- a/ocrmypdf/__main__.py +++ b/ocrmypdf/__main__.py @@ -376,9 +376,9 @@ def check_options_ocr_behavior(options, log): None, "Error: --force-ocr and --skip-text are mutually incompatible.") - if options.redo_ocr and (options.skip_text or options.force_ocr): - raise argparse.ArgumentError( - "Error: --redo-ocr and other OCR options are incompatible.") + # if options.redo_ocr and (options.skip_text or options.force_ocr): + # raise argparse.ArgumentError( + # "Error: --redo-ocr and other OCR options are incompatible.") if set(options.language) & {'chi_sim', 'chi_tra'} and \ (options.pdf_renderer == 'hocr' or options.output_type == 'pdfa'):