pub struct RenderOptions {
pub resolution: DPI,
pub scale: Option<Scale>,
pub greyscale: bool,
pub crop: Option<Crop>,
pub password: Option<Password>,
pub pdftocairo: bool,
}Expand description
Options for rendering PDFs
Fields§
§resolution: DPIResolution in dots per inch
scale: Option<Scale>Scale pages to a certain number of pixels
greyscale: boolRender pages in grayscale
crop: Option<Crop>Crop a specific section of the page
password: Option<Password>Password to unlock encrypted PDFs
pdftocairo: boolUse pdftocairo instead of pdftoppm
Implementations§
Source§impl RenderOptions
impl RenderOptions
pub fn to_cli_args(&self) -> Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnwindSafe for RenderOptions
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