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

Free Support Forum - aspose.com

Issue when loading mht file

I’m attempting to convert a mht file to pdf, using latest version of Aspose.Words. Aspose.Words detects the file as plain text file and converts it with all of it’s header information. I’ve attached source file and result of conversion.

Here’s the code used:
var Document = new Aspose.Words.Document(fileStream, new LoadOptions(LoadFormat.Mhtml, “”, “”));
MemoryStream pdfStream = new MemoryStream();
Document.Save(pdfStream, new PdfSaveOptions()
{
Compliance = options.GeneratePdfA ? PdfCompliance.PdfA1b : PdfCompliance.Pdf15,
PrettyFormat = true,
});

Please let me know, how to convert this file correctly.

Hi Klemen,


Thanks for your inquiry. While using the latest version of Aspose.Words i.e. 16.1.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-13191. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

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


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