docx-rs/docx-core/examples/reader.rs

11 lines
261 B
Rust
Raw Normal View History

use docx_rs::*;
use std::fs::*;
use std::io::Read;
pub fn main() {
let mut file = File::open("./fixtures/image_node_docx/image.docx").unwrap();
let mut buf = vec![];
file.read_to_end(&mut buf).unwrap();
dbg!(read_docx(&buf).unwrap().json());
}