pub struct PageText {
pub spans: Vec<TextSpan>,
pub chars: Vec<TextChar>,
pub page_width: f32,
pub page_height: f32,
}Expand description
Complete text extraction result for a single page.
Single-call API that provides spans, per-character data, and page dimensions.
The chars field is derived from spans via TextSpan::to_chars(), using
font-metric widths when available for accurate per-glyph bounding boxes.
Fields§
§spans: Vec<TextSpan>Text spans in reading order.
chars: Vec<TextChar>Per-character data derived from spans (uses font metric widths when available).
page_width: f32Page width in PDF points.
page_height: f32Page height in PDF points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PageText
impl RefUnwindSafe for PageText
impl Send for PageText
impl Sync for PageText
impl Unpin for PageText
impl UnsafeUnpin for PageText
impl UnwindSafe for PageText
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