Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

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

$
0
0
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

Viewing all articles
Browse latest Browse all 1367

Trending Articles