pub struct PageText { /* private fields */ }Expand description
Text content of one page: the extracted string plus per-character
geometry. Plain owned data — no PDFium resources, Send + Sync,
outlives page and document.
PDFium’s text engine emits UCS-2: characters outside the Basic
Multilingual Plane are not representable in text
(PDFium substitutes or drops them), and each chars
entry carries the raw code in PageChar::code. Indexing also
differs between the two views — correlate through geometry rather than
assuming 1:1 index equality.
Implementations§
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