Apply user arguments even in the case of the safe fallback to forcing OCR (#4981)

This commit is contained in:
Trenton H
2023-12-14 11:20:47 -08:00
committed by GitHub
parent 61995d6d74
commit 46997dfd3d
2 changed files with 2 additions and 2 deletions

View File

@@ -254,7 +254,7 @@ class RasterisedDocumentParser(DocumentParser):
f"Image DPI of {ocrmypdf_args['image_dpi']} is low, OCR may fail",
)
if settings.OCR_USER_ARGS and not safe_fallback:
if settings.OCR_USER_ARGS:
try:
user_args = json.loads(settings.OCR_USER_ARGS)
ocrmypdf_args = {**ocrmypdf_args, **user_args}