mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 21:16:56 +01:00
Adds more documentation for OCR_PAGES and prevents using 0 for actual OCR (#5275)
This commit is contained in:
parent
ee2bfe2350
commit
9043f45350
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue