The Alignment of the table is not correctly rendered in the result of saving in HTML format

Hi there


We are currently testing saving MSG files into HTML format with Aspose Email 17.1.0.

Here is our code for test:
String file = “custom/input/msg/Msg Test For MEMO.msg”;
byte[] fileContent = IOUtils.toByteArray(new FileInputStream(file));

ByteArrayOutputStream baos = new ByteArrayOutputStream();
MsgLoadOptions msgLoadOpt = new MsgLoadOptions();
msgLoadOpt.setPrefferedTextEncoding(Charset.forName(“UTF-8”));
MailMessage msg = MailMessage.load(new ByteArrayInputStream(fileContent), msgLoadOpt);

HtmlSaveOptions saveOps = new HtmlSaveOptions();
saveOps.setCheckBodyContentEncoding(true);
saveOps.setEmbedResources(true);
saveOps.setMailMessageSaveType(MailMessageSaveType.getHtmlFormat());

msg.save(baos, saveOps);

IOUtils.write(baos.toByteArray(),
new FileOutputStream(“custom/output/msg/” + FilenameUtils.getName(file) + “.html”));

In the result, the position of the table seem not correct in the entire HTML page.
I have upload the MSG file and the result.
Please check the attachment, and help us solve this issue, thank you


Craig

Hi Craig,


Thank you for posting your inquiry.

We have investigated the issue at our end and were able to observe the problem at our end. It has been logged as EMAILJAVA-34232 for further analysis by our Product team. We’ll update you here once there is some information or a fix version available in this regard.