pub struct ImageOutput {
pub scale: Option<f32>,
pub page_images: bool,
}Expand description
Image outputs of the PDF/image pipeline (#519/#520): the scale picture
crops are delivered at and whether each page’s render is kept as the
document’s page image. See Pipeline::images_scale /
Pipeline::generate_page_images.
Fields§
§scale: Option<f32>Pixels per PDF point for picture crops and page images — docling’s
images_scale. None keeps the pipeline’s own page render (2.0
px/pt), resampling nothing.
page_images: boolKeep every page’s render as the document’s page image — docling’s
generate_page_images.
Trait Implementations§
Source§impl Clone for ImageOutput
impl Clone for ImageOutput
impl Copy for ImageOutput
Source§impl Debug for ImageOutput
impl Debug for ImageOutput
Source§impl Default for ImageOutput
impl Default for ImageOutput
Source§impl PartialEq for ImageOutput
impl PartialEq for ImageOutput
impl StructuralPartialEq for ImageOutput
Auto Trait Implementations§
impl Freeze for ImageOutput
impl RefUnwindSafe for ImageOutput
impl Send for ImageOutput
impl Sync for ImageOutput
impl Unpin for ImageOutput
impl UnsafeUnpin for ImageOutput
impl UnwindSafe for ImageOutput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().