Disable other use redo_ocr

This commit is contained in:
James R. Barlow
2017-05-12 13:24:30 -07:00
parent 115d6df94f
commit b1f79e4d97
+3 -3
View File
@@ -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'):