use std::io::Read; use dotext::{Pptx, MsDoc}; pub fn get_text(path : &str) -> String { let mut file = Pptx::open(path).unwrap(); let mut content = String::new(); let _ = file.read_to_string(&mut content); content }