pub struct StructuredDataConfig {
pub min_table_rows: usize,
pub min_table_columns: usize,
pub column_alignment_tolerance: f64,
pub row_alignment_tolerance: f64,
pub detect_tables: bool,
pub detect_key_value: bool,
pub detect_multi_column: bool,
pub min_column_gap: f64,
}Expand description
Configuration for structured data detection.
Fields§
§min_table_rows: usizeMinimum number of rows to consider something a table
min_table_columns: usizeMinimum number of columns to consider something a table
column_alignment_tolerance: f64Tolerance for column alignment (in PDF units)
Text fragments within this distance are considered aligned.
row_alignment_tolerance: f64Tolerance for row alignment (in PDF units)
detect_tables: boolEnable table detection
detect_key_value: boolEnable key-value pair detection
detect_multi_column: boolEnable multi-column layout detection
min_column_gap: f64Minimum horizontal gap to consider a column boundary (in PDF units)
Implementations§
Source§impl StructuredDataConfig
impl StructuredDataConfig
Sourcepub fn with_min_table_rows(self, rows: usize) -> Self
pub fn with_min_table_rows(self, rows: usize) -> Self
Sets the minimum number of rows for table detection.
Sourcepub fn with_min_table_columns(self, columns: usize) -> Self
pub fn with_min_table_columns(self, columns: usize) -> Self
Sets the minimum number of columns for table detection.
Sourcepub fn with_column_tolerance(self, tolerance: f64) -> Self
pub fn with_column_tolerance(self, tolerance: f64) -> Self
Sets the column alignment tolerance.
Sourcepub fn with_row_tolerance(self, tolerance: f64) -> Self
pub fn with_row_tolerance(self, tolerance: f64) -> Self
Sets the row alignment tolerance.
Sourcepub fn with_table_detection(self, enabled: bool) -> Self
pub fn with_table_detection(self, enabled: bool) -> Self
Enables or disables table detection.
Sourcepub fn with_key_value_detection(self, enabled: bool) -> Self
pub fn with_key_value_detection(self, enabled: bool) -> Self
Enables or disables key-value pair detection.
Sourcepub fn with_multi_column_detection(self, enabled: bool) -> Self
pub fn with_multi_column_detection(self, enabled: bool) -> Self
Enables or disables multi-column layout detection.
Trait Implementations§
Source§impl Clone for StructuredDataConfig
impl Clone for StructuredDataConfig
Source§fn clone(&self) -> StructuredDataConfig
fn clone(&self) -> StructuredDataConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StructuredDataConfig
impl Debug for StructuredDataConfig
Auto Trait Implementations§
impl Freeze for StructuredDataConfig
impl RefUnwindSafe for StructuredDataConfig
impl Send for StructuredDataConfig
impl Sync for StructuredDataConfig
impl Unpin for StructuredDataConfig
impl UnwindSafe for StructuredDataConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().