pub struct Page {
pub index: u32,
pub width: f32,
pub height: f32,
pub rotation: i32,
pub chars: Vec<Char>,
pub lines: Vec<TextLine>,
pub blocks: Vec<Block>,
pub rects: Vec<Rect>,
pub rules: Vec<Rule>,
pub images: Vec<ImageRef>,
pub links: Vec<Link>,
}Expand description
A single page and everything found on it, from finest (chars) to coarsest (blocks). Layers coexist so callers can pick the granularity they need.
Fields§
§index: u32§width: f32§height: f32§rotation: i32Page rotation in degrees (0/90/180/270).
chars: Vec<Char>Finest granularity: every glyph with its coordinates.
lines: Vec<TextLine>Characters clustered into lines (geometric, deterministic).
blocks: Vec<Block>Paragraphs / tables / images in reading order.
rects: Vec<Rect>Vector rectangles — a source of table borders.
rules: Vec<Rule>Vector line segments — a source of table rules.
images: Vec<ImageRef>§links: Vec<Link>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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 more