pub struct Image {
pub x0: f64,
pub top: f64,
pub x1: f64,
pub bottom: f64,
pub width: f64,
pub height: f64,
pub name: String,
pub src_width: Option<u32>,
pub src_height: Option<u32>,
pub bits_per_component: Option<u32>,
pub color_space: Option<String>,
}Expand description
An image extracted from a PDF page via the Do operator.
Coordinates use pdfplumber’s top-left origin system.
Fields§
§x0: f64Left x coordinate.
top: f64Top y coordinate (distance from top of page).
x1: f64Right x coordinate.
bottom: f64Bottom y coordinate (distance from top of page).
width: f64Display width in points.
height: f64Display height in points.
name: StringXObject name (e.g., “Im0”).
src_width: Option<u32>Original pixel width.
src_height: Option<u32>Original pixel height.
bits_per_component: Option<u32>Bits per component.
color_space: Option<String>Color space name.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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