pub struct Interp<'a> { /* private fields */ }Implementations§
Source§impl<'a> Interp<'a>
impl<'a> Interp<'a>
Sourcepub fn new(
doc: &'a Document,
width: u32,
height: u32,
shared: Rc<Shared>,
bitmap_hint: f64,
) -> Option<Interp<'a>>
pub fn new( doc: &'a Document, width: u32, height: u32, shared: Rc<Shared>, bitmap_hint: f64, ) -> Option<Interp<'a>>
A white canvas of width × height device pixels.
pub fn into_canvas(self) -> Pixmap
Sourcepub fn run_page(
&mut self,
content: &[u8],
resources: Option<&Dictionary>,
base: Mat,
)
pub fn run_page( &mut self, content: &[u8], resources: Option<&Dictionary>, base: Mat, )
Draw a page’s content under base (user space → device).
Sourcepub fn run_widgets(&mut self, page: &Dictionary, base: Mat)
pub fn run_widgets(&mut self, page: &Dictionary, base: Mat)
Draw the page’s Widget annotations (/AP /N, honouring /AS and the
Hidden / NoView flags) — what docling-parse renders of the annotations.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Interp<'a>
impl<'a> !Send for Interp<'a>
impl<'a> !Sync for Interp<'a>
impl<'a> !UnwindSafe for Interp<'a>
impl<'a> Freeze for Interp<'a>
impl<'a> Unpin for Interp<'a>
impl<'a> UnsafeUnpin for Interp<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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