#[non_exhaustive]pub enum PageRange {
IndividualPageSelector(Box<IndividualPageSelector>),
FromStart(i32),
FromEnd(i32),
}Expand description
A subset of pages to process. If not specified, all pages are processed. If a page range is set, only the given pages are extracted and processed from the document. In the output document, Document.Page.page_number refers to the page number in the original document. This configuration only applies to online processing with ProcessDocument.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IndividualPageSelector(Box<IndividualPageSelector>)
Which pages to process (1-indexed).
FromStart(i32)
Only process certain pages from the start. Process all if the document has fewer pages.
FromEnd(i32)
Only process certain pages from the end, same as above.
Trait Implementations§
impl StructuralPartialEq for PageRange
Auto Trait Implementations§
impl Freeze for PageRange
impl RefUnwindSafe for PageRange
impl Send for PageRange
impl Sync for PageRange
impl Unpin for PageRange
impl UnwindSafe for PageRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more