mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Apply user arguments even in the case of the safe fallback to forcing OCR (#4981)
This commit is contained in:
		| @@ -733,7 +733,7 @@ they use underscores instead of dashes. | ||||
|         Paperless has been tested to work with the OCR options provided | ||||
|         above. There are many options that are incompatible with each other, | ||||
|         so specifying invalid options may prevent paperless from consuming | ||||
|         any documents. | ||||
|         any documents.  Use with caution! | ||||
|  | ||||
|     Specify arguments as a JSON dictionary. Keep note of lower case | ||||
|     booleans and double quoted parameter names and strings. Examples: | ||||
|   | ||||
| @@ -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} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trenton H
					Trenton H