GroupDocs.Parser for .NET 23.5 Release Notes
This page contains release notes for GroupDocs.Parser for .NET 23.5
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
PARSERNET-2085 | Exception working with password protected document | Improvement |
PARSERNET-2084 | Email with multiple attachments - Content is same for different attachments if the file names are same | Bug |
PARSERNET-2083 | Distinguish inline images in email | Feature |
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);
}
}
}