Skip to main content

Module page_range

Module page_range 

Source
Expand description

Page range parsing and filtering.

Parses page range strings like โ€œ1-3,5,7-10โ€ into a set of 1-based page numbers, then filters pipeline pages to keep only selected ones.

Functionsยง

filter_pages
Filter pages to keep only those in the selected set. selected contains 1-based page numbers. Returns a new Vec with only the selected pages (preserving order).
parse_page_range
Parse a page range string into a set of 1-based page numbers.