We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Mht to png/pdf : inline image not displayed

Hello,


We are using Aspose Words to transform mhtml documents into png images and pdf.
Sometimes inline image embedded in the mhtml is not displayed.

This problem can be reproduced on the attached sample with this code :
LoadOptions options = new LoadOptions(LoadFormat.Mhtml, null, null);
var document = new Document(@“C:\test\test.mht”, options);

// Png
ImageSaveOptions imageOptions = new ImageSaveOptions(SaveFormat.Png)
{
PaperColor = Color.White,
Resolution = 300,
ImageColorMode = ImageColorMode.None,
PixelFormat = ImagePixelFormat.Format24BppRgb,
};
for (int pageIndex = 0; pageIndex < document.PageCount; pageIndex++)
{
imageOptions.PageIndex = pageIndex;
document.Save(String.Format(@“C:\test\test{0}.png”, pageIndex), imageOptions);
}

// Pdf
document.Save(@“C:\test\test.pdf”, SaveFormat.Pdf);

Note that the image is correctly displayed when the mhtml is opened in Internet Explorer.

Thanks in advance and best regards,
Christophe PETIOT
Hi Christophe,

Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-12768. Our product team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-12768) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.