Unable to convert MHT to PDF


#1

Hi I am converting MHT to PDF and I am getting below mentioned error.

Error: "No html part found!"

Could you please help me to resolve this error, I am getting this error while loading file in Document object, I am using below mentioned code.

MhtLoadOptions options = new MhtLoadOptions();
// Load PDF document
Aspose.Pdf.Document document = new Document(@“FilePath”, options);
// Save the output as PDF document
document.Save(outputFilePath);

Thanks,


#2

Hi Mihir,


Thanks for contacting support.

I have tried to convert a sample MHT file into PDF and managed to reproduce the issue which you have reported. However for the initial investigation I have logged the issue as PDFNET-42368 in our issue tracking system with my sample file. We will further look into the reasons which caused the issue and keep you informed on the status of its correction. Please be patient and spare us a little time.

We are sorry for the inconvenience.


Best Regards,

#3

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan


#4

Hi,

I encountered the same issue reported above while trying to create pdf using the attached mht, and I am using Aspose.PDF version 19.6.

error.zip (797 Bytes)

Dim optsLoad As Aspose.Pdf.MhtLoadOptions = New Aspose.Pdf.MhtLoadOptions()
Dim Doc As Aspose.Pdf.Document = New Aspose.Pdf.Document(MhtFile, optsLoad)

Error: System.ApplicationException: ‘No html part found!’

Thanks


#5

@gnimiyohk

We were able to replicate the issue in our environment and logged it as PDFNET-46542 in our issue tracking system. We will definitely look into details of this issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.