#include "docwire.h"
#include <fstream>
int main(int argc, char* argv[])
{
using namespace docwire
try
{
auto chain = content_type::detector{} | office_formats_parser{} | PlainTextExporter() | std::cout // create a chain of steps to parse a file
for (int i = 1 i < 3 ++i)
std::ifstream(std::to_string(i) + ".docx", std::ios_base::binary) | chain // set the input file as an input stream
}
catch (const std::exception& e)
{
std::cerr << errors::diagnostic_message(e) << std::endl
return 1
}
return 0
}
浙公网安备 33010602011771号