mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 21:16:56 +01:00
Adds new setting to control color conversions (#4709)
This commit is contained in:
parent
e1b573adeb
commit
e3f4e0b775
3 changed files with 24 additions and 0 deletions
|
|
@ -186,6 +186,11 @@ class RasterisedDocumentParser(DocumentParser):
|
|||
"progress_bar": False,
|
||||
}
|
||||
|
||||
if "pdfa" in ocrmypdf_args["output_type"]:
|
||||
ocrmypdf_args[
|
||||
"color_conversion_strategy"
|
||||
] = settings.OCR_COLOR_CONVERSION_STRATEGY
|
||||
|
||||
if settings.OCR_MODE == "force" or safe_fallback:
|
||||
ocrmypdf_args["force_ocr"] = True
|
||||
elif settings.OCR_MODE in ["skip", "skip_noarchive"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue