pub struct PageInfo {
pub index: usize,
pub page_number: u32,
pub media_box: BoundingBox,
pub crop_box: BoundingBox,
pub rotation: i64,
pub width: f64,
pub height: f64,
}Expand description
Physical page information extracted from the PDF.
Fields§
§index: usizeZero-based page index.
page_number: u32One-based page number.
media_box: BoundingBoxMediaBox — the full physical page size.
crop_box: BoundingBoxCropBox — the visible area (defaults to MediaBox if absent).
rotation: i64Page rotation in degrees (0, 90, 180, 270).
width: f64Page width in points.
height: f64Page height in points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PageInfo
impl RefUnwindSafe for PageInfo
impl Send for PageInfo
impl Sync for PageInfo
impl Unpin for PageInfo
impl UnsafeUnpin for PageInfo
impl UnwindSafe for PageInfo
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