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

Free Support Forum - aspose.com

Bullet style changed when converting MSG to MHTML

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)

@konopka,

I have worked with the sample MSG file shared by you and have observe the issue specified. An issue with ID EMAILJAVA-34662 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

This issue has been outstanding for a year now. Is there any movement on the EMAILJAVA-34662 ticket? If no, can it be fixed in near future?

@yachan,
We apologize for not notifying you in time. Our development team investigated the issue. If you save the message as MHT or HTML from Outlook, the bullet point also changes style. With our API, we have the same result as Outlook.