pub struct PdfPageImageInitializationOptions {
pub media_box: Option<PdfRect>,
pub rotation: Option<i32>,
pub upscale_if_smaller: bool,
pub compression_quality: Option<f64>,
}Expand description
Builder-style options for the corresponding PDFPageImageInitialization API.
Fields§
§media_box: Option<PdfRect>Mirrors the corresponding PDFPage field.
rotation: Option<i32>Mirrors the corresponding PDFPage field.
upscale_if_smaller: boolMirrors the corresponding PDFPage field.
compression_quality: Option<f64>Mirrors the corresponding PDFPage field.
Implementations§
Source§impl PdfPageImageInitializationOptions
impl PdfPageImageInitializationOptions
Sourcepub fn with_media_box(self, value: PdfRect) -> Self
pub fn with_media_box(self, value: PdfRect) -> Self
Sets the corresponding PDFPageImageInitialization option and returns the builder.
Sourcepub fn with_rotation(self, value: i32) -> Self
pub fn with_rotation(self, value: i32) -> Self
Sets the corresponding PDFPageImageInitialization option and returns the builder.
Sourcepub fn with_upscale_if_smaller(self, value: bool) -> Self
pub fn with_upscale_if_smaller(self, value: bool) -> Self
Sets the corresponding PDFPageImageInitialization option and returns the builder.
Sourcepub fn with_compression_quality(self, value: f64) -> Self
pub fn with_compression_quality(self, value: f64) -> Self
Sets the corresponding PDFPageImageInitialization option and returns the builder.
Trait Implementations§
Source§impl Clone for PdfPageImageInitializationOptions
impl Clone for PdfPageImageInitializationOptions
Source§fn clone(&self) -> PdfPageImageInitializationOptions
fn clone(&self) -> PdfPageImageInitializationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PdfPageImageInitializationOptions
impl Default for PdfPageImageInitializationOptions
Source§fn default() -> PdfPageImageInitializationOptions
fn default() -> PdfPageImageInitializationOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for PdfPageImageInitializationOptions
impl PartialEq for PdfPageImageInitializationOptions
Source§fn eq(&self, other: &PdfPageImageInitializationOptions) -> bool
fn eq(&self, other: &PdfPageImageInitializationOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PdfPageImageInitializationOptions
Auto Trait Implementations§
impl Freeze for PdfPageImageInitializationOptions
impl RefUnwindSafe for PdfPageImageInitializationOptions
impl Send for PdfPageImageInitializationOptions
impl Sync for PdfPageImageInitializationOptions
impl Unpin for PdfPageImageInitializationOptions
impl UnsafeUnpin for PdfPageImageInitializationOptions
impl UnwindSafe for PdfPageImageInitializationOptions
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