Convert PDF not working

We use the Aspose Words library to convert an EML/MSG to PDF inside Outlook, in a VSTO Addin project in .NET Framework 4.8.

The email in question arrived to a mailbox containing the “First Contact Safety Tip” option configured (that is, it displays a popup at the top of the email body that warns the user that the sender may not be reliable, as emails from that sender are not often received).

When converting the email body, the conversion result contains 6-7 pages with the banner relating to the “First Contact Safety Tip” option before displaying the related email text.

Have you ever encountered this problem?

@SIAV

Could you please provide more details about the specific issue you are facing during the PDF conversion? Are there any error messages or specific behaviors you are observing?

@SIAV Could you please attach your input, output and expected output documents here for our reference? We will check the issue and provide you more information.

Good morning, here is an example of a file where we encountered the problem.
All’Att_ne della Sig_ra Arianna Milani Avviso 1_2025 Fondimpresa (1).zip (358.5 KB)

@SIAV Thank you for additional information. Unfortunately, the problem is not reproducible on my side. I used the following simple code for conversion:

Aspose.Email.MailMessage msg = Aspose.Email.MailMessage.Load(@"C:\Temp\in.msg");
msg.Save(@"C:\Temp\tmp.mhtml", Aspose.Email.SaveOptions.DefaultMhtml);
Aspose.Words.Document doc = new Aspose.Words.Document(@"C:\Temp\tmp.mhtml");
doc.Save(@"C:\Temp\out.pdf");

Here is the produced output: out.pdf (145.7 KB)