Hi,
I updated to Aspose.Email .Net (and Aspose.Word .Net) 18.3 today, With this new version one of our integration test fails because the generated pdf file from one eml file contains now more pages than expected. It looks like that the jpeg attachment of the file is included in the mhtml file that is generated when saving the email. I may be that is intended and not a fault of the software. But this is not a desired result for our software.
Is there a way to disable this behavior?
I included the original eml file and the result of 18.3 and 18.2.
EMLMessage.zip (2.2 MB)
Aspose.zip (2.7 MB)
The code we use is:
MemoryStream stream = new MemoryStream();
theMessage.Save(stream, Aspose.Email.SaveOptions.DefaultMhtml);
stream.Seek(0, SeekOrigin.Begin);
Aspose.Words.LoadOptions loadOptions = new Aspose.Words.LoadOptions();
loadOptions.LoadFormat = Aspose.Words.LoadFormat.Mhtml;
Aspose.Words.Document doc = new Aspose.Words.Document (stream, loadOptions);
Aspose.Words.Saving.PdfSaveOptions options = new Aspose.Words.Saving.PdfSaveOptions();
options.Compliance = PdfCompliance.Pdf15;
doc.Save(fileName, saveOptions);