pub struct ProcessingConfig {Show 25 fields
pub output_dir: Option<String>,
pub password: Option<String>,
pub formats: Vec<OutputFormat>,
pub quiet: bool,
pub filter_config: FilterConfig,
pub sanitize: bool,
pub keep_line_breaks: bool,
pub replace_invalid_chars: String,
pub use_struct_tree: bool,
pub table_method: TableMethod,
pub reading_order: ReadingOrder,
pub markdown_page_separator: Option<String>,
pub text_page_separator: Option<String>,
pub html_page_separator: Option<String>,
pub image_output: ImageOutput,
pub image_format: ImageFormat,
pub image_dir: Option<String>,
pub raster_table_ocr: bool,
pub pages: Option<String>,
pub include_header_footer: bool,
pub hybrid: HybridBackend,
pub hybrid_mode: HybridMode,
pub hybrid_url: Option<String>,
pub hybrid_timeout: u64,
pub hybrid_fallback: bool,
}Expand description
Main processing configuration (24 options from CLI).
Fields§
§output_dir: Option<String>Output directory (default: input file directory)
password: Option<String>Password for encrypted PDFs
formats: Vec<OutputFormat>Output formats
quiet: boolSuppress console logging
filter_config: FilterConfigContent safety filter configuration
sanitize: boolEnable PII sanitization
keep_line_breaks: boolPreserve original line breaks
replace_invalid_chars: StringReplacement character for invalid characters
use_struct_tree: boolUse PDF structure tree for tagged PDFs
table_method: TableMethodTable detection method
reading_order: ReadingOrderReading order algorithm
markdown_page_separator: Option<String>Page separator for Markdown output
text_page_separator: Option<String>Page separator for text output
html_page_separator: Option<String>Page separator for HTML output
image_output: ImageOutputImage output mode
image_format: ImageFormatImage format
image_dir: Option<String>Directory for extracted images
raster_table_ocr: boolEnable raster table OCR recovery on image-based tables
pages: Option<String>Pages to extract (e.g., “1,3,5-7”)
Include headers/footers in output
hybrid: HybridBackendHybrid backend
hybrid_mode: HybridModeHybrid triage mode
hybrid_url: Option<String>Hybrid backend URL
hybrid_timeout: u64Hybrid timeout in milliseconds
hybrid_fallback: boolEnable local fallback on hybrid error
Implementations§
Source§impl ProcessingConfig
impl ProcessingConfig
Sourcepub fn hybrid_enabled(&self) -> bool
pub fn hybrid_enabled(&self) -> bool
Returns true when a hybrid backend is configured.
Sourcepub fn raster_table_ocr_enabled(&self) -> bool
pub fn raster_table_ocr_enabled(&self) -> bool
Returns true when local OCR recovery should run.
OCR is only active in hybrid mode and can still be disabled explicitly
via raster_table_ocr.
Trait Implementations§
Source§impl Clone for ProcessingConfig
impl Clone for ProcessingConfig
Source§fn clone(&self) -> ProcessingConfig
fn clone(&self) -> ProcessingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProcessingConfig
impl Debug for ProcessingConfig
Source§impl Default for ProcessingConfig
impl Default for ProcessingConfig
Source§impl<'de> Deserialize<'de> for ProcessingConfig
impl<'de> Deserialize<'de> for ProcessingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ProcessingConfig
impl RefUnwindSafe for ProcessingConfig
impl Send for ProcessingConfig
impl Sync for ProcessingConfig
impl Unpin for ProcessingConfig
impl UnsafeUnpin for ProcessingConfig
impl UnwindSafe for ProcessingConfig
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> 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().