#text-document #extract #format #docx #word #coming #readable

dotext

Simple Rust library to extract readable text from specific document format like Word Document (docx). Currently only support several format, other format coming soon.

2 releases

Uses old Rust 2015

0.1.1 Dec 3, 2017
0.1.0 Dec 3, 2017

#8 in #coming

Download history 2/week @ 2023-12-17 44/week @ 2024-01-07 42/week @ 2024-01-14 27/week @ 2024-01-21 11/week @ 2024-02-04 54/week @ 2024-02-11 85/week @ 2024-02-18 44/week @ 2024-02-25 49/week @ 2024-03-03 64/week @ 2024-03-10 47/week @ 2024-03-17 68/week @ 2024-03-24 207/week @ 2024-03-31

394 downloads per month

MIT license

1.5MB
467 lines

Contains (Zip file, 98KB) samples/sample.xlsx

Document File Text Extractor

Build Status

Simple Rust library to extract readable text from specific document format like Word Document (docx). Currently only support several format, other format coming soon.

Supported Document

  • Microsoft Word (docx)
  • Microsoft Excel (xlsx)
  • Microsoft Power Point (pptx)
  • OpenOffice Writer (odt)
  • OpenDocument Presentation (odp)
  • PDF

Usage

let mut file = Docx::open("data/sample.docx").unwrap();
let mut isi = String::new();
let _ = file.read_to_string(&mut isi);
println!("CONTENT:");
println!("----------BEGIN----------");
println!("{}", isi);
println!("----------EOF----------");

Test

$ cargo test

or run example:

$ cargo run --example readdocx data/sample.docx

[] Robin Sy.

Dependencies

~10MB
~245K SLoC