pub struct ImageInfo {
pub page: u32,
pub xref: u32,
pub width: u32,
pub height: u32,
pub color_space: Option<String>,
pub bits_per_component: Option<u32>,
pub filters: Vec<String>,
pub size_bytes: usize,
}Expand description
Image XObject inventory entry. We deliberately do not return the decoded image — that would pull in JBIG2/JPEG2000/Flate/DCTDecode (large C deps). The metadata is enough to drive routing (“is this page a scan we should OCR?”).
Fields§
§page: u32§xref: u32PDF object number; gen is dropped since it’s ~always 0 for images.
width: u32§height: u32§color_space: Option<String>§bits_per_component: Option<u32>§filters: Vec<String>Filter chain (e.g. ["ASCII85Decode", "FlateDecode"]). Empty when
the stream declares no filter.
size_bytes: usizeEncoded stream byte size — for “skip pages with >5 MB images” routing without decoding.
Trait Implementations§
impl StructuralPartialEq for ImageInfo
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnsafeUnpin for ImageInfo
impl UnwindSafe for ImageInfo
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
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 more