Hi,
when converting msg to pdf we encountered this bug where bullet point changes style
message-screenshot.PNG (15.0 KB)
This is code snippet used to convert the file:
String dataDir = “e:\temp\msg-to-pdf\”;
MailMessage mailMsg = MailMessage.load(dataDir + “message.msg”);
File mhtFile = new File(dataDir + "message.mht");
try (OutputStream os = new FileOutputStream(mhtFile);) {
mailMsg.save(os, com.aspose.email.SaveOptions.getDefaultMhtml());
}
com.aspose.words.LoadOptions loadOptions = new com.aspose.words.LoadOptions();
loadOptions.setLoadFormat(LoadFormat.MHTML);
try (InputStream is = new FileInputStream(mhtFile);) {
com.aspose.words.Document document = new com.aspose.words.Document(
is,
loadOptions);
com.aspose.words.SaveOptions saveOptions = new com.aspose.words.PdfSaveOptions();
document.save(dataDir + "message.pdf", saveOptions);
}
and sample file message.zip (13.7 KB)