When converting an MSG file to PDF, Sent Date appears twice in the pdf file

We are using the Aspose c# library.

When we try to convert MSG files to PDF, for some MSG files, Sent Date appears twice in the PDF files.

Below is the code that we use:

// Load the MSG file
MapiMessage msg = MapiMessage.Load(inputFilePath);

// Convert MapiMessage to MailMessage for rendering
MailMessage mailMessage = msg.ToMailMessage(new MailConversionOptions());

// Convert MailMessage to MHTML
MhtSaveOptions mhtSaveOptions = new MhtSaveOptions();
mhtSaveOptions.MhtFormatOptions = MhtFormatOptions.WriteHeader | MhtFormatOptions.RenderCalendarEvent;

// Save the MailMessage as an MHTML file in a memory stream
using (MemoryStream mhtmlStream = new MemoryStream())
{
    mailMessage.Save(mhtmlStream, mhtSaveOptions);
    mhtmlStream.Position = 0;

    // Load the MHTML stream into Aspose.Words Document
    Document document = new Document(mhtmlStream);

    // Save the Document as a PDF file
    document.Save(outputFilePath, SaveFormat.Pdf);
    result = true;
}

I am attaching the sample msg files and the screenshot of the pdf with double Sent Date entries
Samples.zip (18.4 KB)

@arvinthc As I can see the date appears twice in the intermediate MHTML produced by Aspose.Email. So I will move your topic to Aspose.Email forum. My colleagues will help you shortly.

Hello @arvinthc ,

Thank you for providing the sample MSG files and the screenshot.
We’ll investigate this behavior and get back to you with our findings as soon as we have more details.

@arvinthc
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-41617

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.