pub trait OfficeDocumentHandler {
// Provided methods
fn extract_from_zip(
&self,
data: &[u8],
main_xml_path: &str,
) -> Result<String> { ... }
fn extract_text_from_xml(&self, xml: &str) -> Result<String> { ... }
fn extract_metadata_from_zip(&self, data: &[u8]) -> HashMap<String, String> { ... }
}Expand description
Base handler for Office documents (DOCX, PPTX, XLSX)
Provided Methods§
fn extract_from_zip(&self, data: &[u8], main_xml_path: &str) -> Result<String>
fn extract_text_from_xml(&self, xml: &str) -> Result<String>
fn extract_metadata_from_zip(&self, data: &[u8]) -> HashMap<String, String>
Implementors§
impl OfficeDocumentHandler for DocxHandler
Available on crate feature
content-processing only.impl OfficeDocumentHandler for PptxHandler
Available on crate feature
content-processing only.impl OfficeDocumentHandler for XlsxHandler
Available on crate feature
content-processing only.