pub struct ExtractOptions {
pub rtl: bool,
}Expand description
How extraction behaves.
§Examples
use pdfrum_text::ExtractOptions;
// The default reads direction from each line's own text.
assert!(!ExtractOptions::default().rtl);
// A document whose catalog says `/ViewerPreferences << /Direction /R2L >>`
// must be extracted with this set, or every line comes out in the wrong
// order.
let options = ExtractOptions { rtl: true };
assert!(options.rtl);Fields§
§rtl: boolThe document’s /Root /ViewerPreferences /Direction is R2L.
Forces every line’s overall direction right-to-left, which reverses the order of its direction runs. A caller reading this out of the catalog must set it, or every document with that preference extracts in the wrong order.
Trait Implementations§
Source§impl Clone for ExtractOptions
impl Clone for ExtractOptions
Source§fn clone(&self) -> ExtractOptions
fn clone(&self) -> ExtractOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExtractOptions
Source§impl Debug for ExtractOptions
impl Debug for ExtractOptions
Source§impl Default for ExtractOptions
impl Default for ExtractOptions
Source§fn default() -> ExtractOptions
fn default() -> ExtractOptions
Returns the “default value” for a type. Read more
impl Eq for ExtractOptions
Source§impl PartialEq for ExtractOptions
impl PartialEq for ExtractOptions
impl StructuralPartialEq for ExtractOptions
Auto Trait Implementations§
impl Freeze for ExtractOptions
impl RefUnwindSafe for ExtractOptions
impl Send for ExtractOptions
impl Sync for ExtractOptions
impl Unpin for ExtractOptions
impl UnsafeUnpin for ExtractOptions
impl UnwindSafe for ExtractOptions
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