1 unstable release
0.1.0 | Dec 5, 2022 |
---|
#6 in #powerpoint
1.5MB
191 lines
Textract
Rust library for extracting text from various file types. supported file extension.
txt odf ods odt pptx xlsx pdf
Installation and usage;
Use cargo to install textract.
// there is a pdf file at ./tmp.pdf
let content = textract::extract("tmp.pdf","pdf").unwrap;
// content contains raw text in pdf. do whatever you want.
main.rs contains usage of textract library.
commandline
The command line as simple.
textract tmp.pdf pdf
Roadmap.
This lib is in beta stage with few file types support. but texract supports will keep increasing the file types support. since this project is part of
- supports of compressed file and tar archives
- use lib magic to guess file types.
- All types of documents files.
Dependencies
~16–22MB
~355K SLoC