#docx #text #word #extract #extraction #readable #format #file #document #support

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
Download history 20/week @ 2022-03-05 12/week @ 2022-03-12 25/week @ 2022-03-19 44/week @ 2022-03-26 52/week @ 2022-04-02 138/week @ 2022-04-09 65/week @ 2022-04-16 83/week @ 2022-04-23 18/week @ 2022-04-30 31/week @ 2022-05-07 49/week @ 2022-05-14 34/week @ 2022-05-21 37/week @ 2022-05-28 29/week @ 2022-06-04 12/week @ 2022-06-11 18/week @ 2022-06-18

99 downloads per month

MIT license

1.5MB
467 lines

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

~8.5MB
~234K SLoC