SILVERCODERS DocToText
4.0.1512
Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. Extracts metadata and annotations.
|
#include <attachment.h>
Public Member Functions | |
Attachment (const std::string &file_name) | |
Attachment (const Attachment &attachment) | |
Attachment & | operator= (const Attachment &attachment) |
void | setFileName (const std::string &file_name) |
void | setBinaryContent (const std::string &binary_content) |
void | addField (const std::string &field_name, const Variant &field_value) |
const char * | filename () const |
Gets attachment file name. | |
const char * | binaryContent () const |
Gets binary content of the attachment. | |
size_t | binaryContentSize () const |
Returns size of the binary content. | |
bool | hasField (const std::string &field_name) const |
Checks if metadata for given key exist (for example "Content-Type") | |
const Variant & | getField (const std::string &field_name) const |
Returns value for given key (metadata) | |
const std::map< std::string, Variant > & | getFields () const |
Returns map with all keys and values. | |
Structure of the attachment in parsed file. If parsed file has an attachments, PlainTextExtractor will try to get them. Attachment is usually another file. Another thing worth mentioning is that attachments may hold metadada.