Skip to content

Commit d8be262

Browse files
committed
🐛 default min_pages to 0
1 parent 78dc5c2 commit d8be262

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

mindee/input/page_options.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@
66

77
class PageOptions(NamedTuple):
88
page_indexes: Sequence
9-
"""Zero-based list of page indexes.
9+
"""
10+
Zero-based list of page indexes.
1011
A negative index can be used, indicating an offset from the end of the document.
11-
[0, -1] represents the fist and last pages of the document."""
12+
[0, -1] represents the fist and last pages of the document.
13+
"""
1214
operation: str = KEEP_ONLY
13-
"""Operation to apply on the document, given the ``page_indexes`` specified.
14-
`KEEP_ONLY` or `REMOVE`"""
15-
on_min_pages: int = 5
16-
"""Apply the operation only if document has at least this many pages."""
15+
"""
16+
Operation to apply on the document, given the ``page_indexes`` specified.
17+
`KEEP_ONLY` or `REMOVE`
18+
"""
19+
on_min_pages: int = 0
20+
"""
21+
Apply the operation only if document has at least this many pages.
22+
Default: `0` (apply on all documents)
23+
"""

0 commit comments

Comments
 (0)