pub struct WordOptions {
pub x_tolerance: f64,
pub y_tolerance: f64,
pub keep_blank_chars: bool,
pub use_text_flow: bool,
pub text_direction: TextDirection,
}Expand description
Options for word extraction, matching pdfplumber defaults.
Fields§
§x_tolerance: f64Maximum horizontal distance between characters to group into a word.
y_tolerance: f64Maximum vertical distance between characters to group into a word.
keep_blank_chars: boolIf true, include blank/space characters in words instead of splitting on them.
use_text_flow: boolIf true, use the text flow order from the PDF content stream instead of spatial ordering.
text_direction: TextDirectionText direction for grouping characters.
Trait Implementations§
Source§impl Clone for WordOptions
impl Clone for WordOptions
Source§fn clone(&self) -> WordOptions
fn clone(&self) -> WordOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WordOptions
impl Debug for WordOptions
Auto Trait Implementations§
impl Freeze for WordOptions
impl RefUnwindSafe for WordOptions
impl Send for WordOptions
impl Sync for WordOptions
impl Unpin for WordOptions
impl UnsafeUnpin for WordOptions
impl UnwindSafe for WordOptions
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