File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2191,20 +2191,16 @@ fn build_kreuzberg_config(config: &DocumentExtractionConfig) -> kreuzberg::Extra
21912191 kreuzberg_config. ocr = Some ( kreuzberg:: OcrConfig {
21922192 backend : "tesseract" . to_string ( ) ,
21932193 language : config. ocr_language . clone ( ) ,
2194- tesseract_config : None ,
2195- output_format : None ,
2196- paddle_ocr_config : None ,
2197- element_config : None ,
2194+ ..Default :: default ( )
21982195 } ) ;
21992196 kreuzberg_config. force_ocr = config. force_ocr ;
22002197 }
22012198
22022199 // Configure PDF-specific options
22032200 kreuzberg_config. pdf_options = Some ( kreuzberg:: PdfConfig {
22042201 extract_images : config. pdf_extract_images ,
2205- passwords : None ,
22062202 extract_metadata : true ,
2207- hierarchy : None ,
2203+ .. Default :: default ( )
22082204 } ) ;
22092205
22102206 // Configure image extraction settings (includes DPI for OCR)
@@ -2216,6 +2212,7 @@ fn build_kreuzberg_config(config: &DocumentExtractionConfig) -> kreuzberg::Extra
22162212 auto_adjust_dpi : true ,
22172213 min_dpi : 72 ,
22182214 max_dpi : 600 ,
2215+ ..Default :: default ( )
22192216 } ) ;
22202217 }
22212218
You can’t perform that action at this time.
0 commit comments