pub struct RenderSettings {
pub x_scale: f32,
pub y_scale: f32,
pub width: Option<u16>,
pub height: Option<u16>,
}Expand description
Settings to apply during rendering.
Fields§
§x_scale: f32How much the contents should be scaled into the x direction.
y_scale: f32How much the contents should be scaled into the y direction.
width: Option<u16>The width of the viewport. If this is set to None, the width will be chosen
automatically based on the scale factor and the dimensions of the PDF.
height: Option<u16>The height of the viewport. If this is set to None, the height will be chosen
automatically based on the scale factor and the dimensions of the PDF.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderSettings
impl RefUnwindSafe for RenderSettings
impl Send for RenderSettings
impl Sync for RenderSettings
impl Unpin for RenderSettings
impl UnwindSafe for RenderSettings
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