pub struct PageFinalizer;Expand description
Page finalizer for final output generation
Implementations§
Source§impl PageFinalizer
impl PageFinalizer
Sourcepub fn finalize(
input_path: &Path,
output_path: &Path,
options: &FinalizeOptions,
crop_region: Option<CropRegion>,
shift_x: i32,
shift_y: i32,
) -> Result<FinalizeResult>
pub fn finalize( input_path: &Path, output_path: &Path, options: &FinalizeOptions, crop_region: Option<CropRegion>, shift_x: i32, shift_y: i32, ) -> Result<FinalizeResult>
Finalize a page with optional crop region and shift
Sourcepub fn finalize_batch(
pages: &[(PathBuf, PathBuf, bool)],
options: &FinalizeOptions,
odd_crop: Option<CropRegion>,
even_crop: Option<CropRegion>,
page_shifts: &[(i32, i32)],
) -> Result<Vec<FinalizeResult>>
pub fn finalize_batch( pages: &[(PathBuf, PathBuf, bool)], options: &FinalizeOptions, odd_crop: Option<CropRegion>, even_crop: Option<CropRegion>, page_shifts: &[(i32, i32)], ) -> Result<Vec<FinalizeResult>>
Finalize multiple pages with unified crop regions for odd/even groups
Auto Trait Implementations§
impl Freeze for PageFinalizer
impl RefUnwindSafe for PageFinalizer
impl Send for PageFinalizer
impl Sync for PageFinalizer
impl Unpin for PageFinalizer
impl UnwindSafe for PageFinalizer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more