Crates.io | dotext_ed8fc7b |
lib.rs | dotext_ed8fc7b |
version | 0.1.2 |
source | src |
created_at | 2022-12-05 09:08:03.022232 |
updated_at | 2022-12-05 09:08:03.022232 |
description | Simple Rust library to extract readable text from specific document format like Word Document (docx). Currently only support several format, other format coming soon. |
homepage | |
repository | https://github.com/anvie/dotext |
max_upload_size | |
id | 730113 |
size | 1,580,830 |
Simple Rust library to extract readable text from specific document format like Word Document (docx). Currently only support several format, other format coming soon.
let mut file = Docx::open("samples/sample.docx").unwrap();
let mut isi = String::new();
let _ = file.read_to_string(&mut isi);
println!("CONTENT:");
println!("----------BEGIN----------");
println!("{}", isi);
println!("----------EOF----------");
$ cargo test
or run example:
$ cargo run --example readdocx data/sample.docx
[] Robin Sy.