Fix: report a last-page zone as missing when the page count is unknown

An image counts as one page and a PDF without a stored count is counted from the file.
This commit is contained in:
stumpylog committed 2026-11-20 09:59:52 -08:00
1 parent 6b8b946567
commit e81bdff6c2
3 files changed
+121 -10

No files matched your search

+1 -1
View File
@@ -850,7 +850,7 @@ layout.
### Zone settings
- **Page**: the page the zone is on. Turn on **Last page** for zones that are always on the final page,
regardless of how many pages a document has.
regardless of how many pages a document has. If the number of pages cannot be determined, the zone is skipped.
- **OCR language**: the Tesseract languages used to read the zone. Languages other than the defaults must be
installed, see [`PAPERLESS_OCR_LANGUAGES`](configuration.md#PAPERLESS_OCR_LANGUAGES).
- **Transform**: post-processing applied to the text, such as stripping whitespace, keeping only numbers,