Extract attachments from Emails To extract attachments from emails getContainer method is used. This method returns the collection of ContainerItem objects.
Email Attachment can contain the following metadata:
Name Description content-type The MIME type of the attachment content These metadata refer to a container element itself, not a document.
Here are the steps to extract an email text from email attachments:
Instantiate Parser object for the initial document; Call getContainer method and obtain collection of ContainerItem objects; Check if collection isn’t null (container extraction is supported for the document); Iterate through the collection and obtain Parser object to extract a text....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for Java /...
GroupDocs.Parser provides the functionality to extract data from documents on the local disk.
The following example shows how to load the document from the local disk:
// Set the filePath String filePath = Constants.SamplePdf; // Create an instance of Parser class with the filePath try (ParserParser = new Parser(filePath)) { // Extract a text into the reader try (TextReader reader = Parser.getText()) { // Print a text from the document // If text extraction isn't supported, a reader is null System....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for Java /...
This article shows how to extract table of contents from Microsoft Word (DOC, DOCX etc), PDF documents and Ebooks (CHM, EPUB)....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for .NET /...
This article shows how to extract table of contents from Microsoft Word (DOC, DOCX etc), PDF documents and Ebooks (CHM, EPUB)....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for Java /...
This article explains that how to extract Markdown formatted text from document page....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for .NET /...
This article explains that how to extract Markdown formatted text from document page in Java....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for Java /...
This article explains that how to extract images from document page....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for Java /...
This article explains that how to extract text by table of contents item....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for .NET /...
This article explains that how to extract hyperlinks from document page....Parser Product Solution GroupDocs...GroupDocs.Parser Product Family / GroupDocs.Parser for Java /...