mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Adds more documentation for OCR_PAGES and prevents using 0 for actual OCR (#5275)
This commit is contained in:
@@ -238,7 +238,7 @@ class RasterisedDocumentParser(DocumentParser):
|
||||
ocrmypdf_args["rotate_pages"] = True
|
||||
ocrmypdf_args["rotate_pages_threshold"] = self.settings.rotate_threshold
|
||||
|
||||
if self.settings.pages is not None:
|
||||
if self.settings.pages is not None and self.settings.pages > 0:
|
||||
ocrmypdf_args["pages"] = f"1-{self.settings.pages}"
|
||||
else:
|
||||
# sidecar is incompatible with pages
|
||||
|
Reference in New Issue
Block a user