pub struct RenderOptions {
pub dpi: f64,
pub region: Option<[u32; 4]>,
pub background: Option<u32>,
pub annotations: bool,
pub fonts: Option<Rc<dyn FontSource>>,
pub max_pixels: u64,
}Expand description
how to draw a page
Fields§
§dpi: f64pixels per inch: 72 draws a point as a pixel
region: Option<[u32; 4]>the part of the page image to draw, in pixels: x, y, width, height (None: all of it)
background: Option<u32>the colour under the page, straight 0xAARRGGBB (None: transparent)
annotations: booldraw the annotations’ appearances (form fields, stamps, comments)
fonts: Option<Rc<dyn FontSource>>fonts for the fonts a document does not embed (None: the system’s, text::fontdb)
max_pixels: u64the largest image to draw, in pixels
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
Source§fn default() -> RenderOptions
fn default() -> RenderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RenderOptions
impl !Send for RenderOptions
impl !Sync for RenderOptions
impl !UnwindSafe for RenderOptions
impl Forget for RenderOptions
impl Freeze for RenderOptionswhere
*const RcInner<dyn FontSource> is !null: Freeze,
PhantomData<RcInner<dyn FontSource>>: Freeze,
impl Move for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptionswhere
*const RcInner<dyn FontSource> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn FontSource>>: UnsafeUnpin,
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