DocWire DocToText - Powered by Silvercoders 5.0.5
A multifaceted, data extraction software development toolkit that converts all sorts of files to plain text and html. Written in C++, this data extraction tool has a parser able to convert PST & OST files along with a brand new API for better file processing. To enhance its utility, DocToText, as a data extraction tool, can be integrated with other data mining and data analytics applications. It comes equipped with a high grade, scriptable and trainable OCR that has LSTM neural networks based character recognition. This document parser is able to extract metadata along with annotations and supports a list of formats that include: DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), ODFXML (FODP, FODS, FODT), PDF, EML, HTML, Outlook (PST, OST), Image (JPG, JPEG, JFIF, BMP, PNM, PNG, TIFF, WEBP) and DICOM (DCM)
example_2.cpp
1
2#include <iostream>
3#include <fstream>
4#include <memory>
5
6#include "importer.h"
7#include "exporter.h"
8#include "transformer.h"
9#include "parsing_chain.h"
10
15int main(int argc, char* argv[])
16{
17 auto chain = doctotext::Importer()
19 | std::cout; // create a chain of steps to parse a file
20 for (int i = 1; i < argc; ++i)
21 {
22 std::cout << "Parsing file " << argv[i] << std::endl;
23 std::ifstream(argv[i], std::ios_base::in|std::ios_base::binary) | chain; // set the input file as an input stream
24 std::cout << std::endl;
25 }
26
27 return 0;
28}
29
The Importer class. This class is used to import a file and parse it using available parsers.
Definition: importer.h:57
Exporter class for plain text output.
Definition: exporter.h:137