From c312a2a30443e03e8152956b1b42035ed4763cfd Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 1 Sep 2018 02:12:08 -0400 Subject: [PATCH] Remove the duplicated setting pdftotext_path from the OCR path. This is now handled by the document parsing app. Signed-off-by: Roberto Rosario --- HISTORY.rst | 7 ++----- mayan/apps/ocr/settings.py | 8 -------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 6832fc7a71..9a54b3602c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,12 +2,7 @@ ================ - Improve database vendor migration support - Add convertdb management command. -- Fix crop transformation argument parsing. Thanks to Jordan Wages - (@wagesj45). Closes GitLab issue #490 - Add error checking to the crop transformation arguments. -- Fix post login redirection to honor the ?next= URL query string - argument. Thanks go to K.C. Wong (@dvusboy1). Closes GitLab - issue #489. - Update dropzone.js' timeout from 30 seconds to 120 to allow upload of large files on slow connections. - Increase gunicorn's timeout from 30 seconds to 120. @@ -126,6 +121,8 @@ - The document type parsing setup permission can now be granted for individual document types. - Add link to view a specific page's OCR content. +- Remove the duplicated setting pdftotext_path from the OCR path. + This is now handled by the document parsing app. 3.0.3 (2018-08-17) ================== diff --git a/mayan/apps/ocr/settings.py b/mayan/apps/ocr/settings.py index 66b0b7806c..260f561078 100644 --- a/mayan/apps/ocr/settings.py +++ b/mayan/apps/ocr/settings.py @@ -6,14 +6,6 @@ from smart_settings import Namespace namespace = Namespace(name='ocr', label=_('OCR')) -setting_pdftotext_path = namespace.add_setting( - global_name='OCR_PDFTOTEXT_PATH', default='/usr/bin/pdftotext', - help_text=_( - 'File path to poppler\'s pdftotext program used to extract text ' - 'from PDF files.' - ), - is_path=True -) setting_ocr_backend = namespace.add_setting( global_name='OCR_BACKEND', default='ocr.backends.pyocr.PyOCR', help_text=_('Full path to the backend to be used to do OCR.')