Commit 9d0f899
committed
fix: handle default case in split_pdf when page_ranges is None
The split_pdf method was raising ValueError when page_ranges was None,
but the docstring and tests expect it to default to extracting the
first page. Updated to set page_ranges to [{"start": 0, "end": 1}]
when None is provided.
This fixes the failing test_split_pdf_single_page_default test.1 parent e0dda7d commit 9d0f899
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
0 commit comments