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

dotext_ed8fc7b

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

1 unstable release

Uses old Rust 2015

0.1.2 Dec 5, 2022

#10 in #docx

Download history 124/week @ 2024-04-05 136/week @ 2024-04-12 59/week @ 2024-04-19 88/week @ 2024-04-26 49/week @ 2024-05-03 60/week @ 2024-05-10 89/week @ 2024-05-17 56/week @ 2024-05-24 61/week @ 2024-05-31 49/week @ 2024-06-07 70/week @ 2024-06-14 63/week @ 2024-06-21 29/week @ 2024-06-28 60/week @ 2024-07-05 88/week @ 2024-07-12 37/week @ 2024-07-19

216 downloads per month
Used in textract

MIT license

1.5MB
540 lines

Document File Text Extractor

Build Status Build status Crates.io

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)
  • OpenOffice Spreadsheet (ods)
  • OpenDocument Presentation (odp)
  • PDF

Usage

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----------");

Test

$ cargo test

or run example:

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

[] Robin Sy.

Dependencies

~10MB
~255K SLoC