aboutsummaryrefslogtreecommitdiff
path: root/src/text/pptx.rs
blob: 7dac77eeaaece36bceb751756be3b7b02e0a8b84 (plain)
1
2
3
4
5
6
7
8
9
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
}