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

Free Support Forum - aspose.com

Converted MHT files to PDF. Converted PDF is not in readable format

Hi,

We are facing issue after converting the MHT file to PDF file and the converted PDF file is not in readable format.

We have used Aspsoe.PDF.DLL version 20.7

Could you please assist it on this ASAP.

Thanks
Harish SK

@Harish_sk

Would you please share your sample MHT file with us. We will test the scenario in our environment and address it accordingly.

Hi @asad.ali,

Please find the attached zip file which has Original sample input file and converted file (which is not in readable formatSample Files.zip (608.7 KB)
)

Thanks
Harish SK

@Harish_sk

We tested the scenario using Aspose.PDF for .NET 20.8 and following code snippet. The resultant PDF file was fine. Please check attached output generated at our side.

MhtLoadOptions options = new MhtLoadOptions();
Document document = new Document(dataDir + "Original_Input_MHT_File.mht", options);
document.Save(dataDir + "MHTToPDF_out.pdf");

MHTToPDF_out.pdf (96.9 KB)

Would you please try using latest version and in case you still face any issue, please feel free to let us know.