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


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 Aspose.PDF.DLL version 20.7

Could you please assist it on this ASAP.

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 (608.7 KB)

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.