GroupDocs.Parser for .NET 23.5 Release Notes

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
PARSERNET-2085Exception working with password protected documentImprovement
PARSERNET-2084Email with multiple attachments - Content is same for different attachments if the file names are sameBug
PARSERNET-2083Distinguish inline images in emailFeature

Public API and Backward Incompatible Changes

Exception working with password protected document

Description

The current implementation of 7-zip in GroupDocs.Parser doesn’t support encrypted 7-zip archives. This improvement implements DocumentNotSupported exception for this type of archives.

Public API changes

No API changes.

Distinguish inline images in email

Description

This feature allows to distinguish inline images and other attachments in emails.

Public API changes

string GetMetadataValue(string name) method was added in ContainerItem class.

Usage

The following example shows how to detect inline attachments:

// Create an instance of Parser class
using(Parser parser = new Parser(filePath))
{
    // Extract attachments from the container
    IEnumerable<ContainerItem> attachments = parser.GetContainer();
    // Check if container extraction is supported
    if(attachments == null)
    {
        Console.WriteLine("Container extraction isn't supported");
    }

    // Iterate over attachments
    foreach(ContainerItem item in attachments)
    {
        // Check metadata for 'disposition' item
        if(item.GetMetadataValue("disposition") == "inline") {
		    // If it's 'inline' then print the file path
		    Console.WriteLine(item.FilePath);
        }
    }
}