Free Support Forum - aspose.com

Unable to convert MHT file to PDF correctly

Hello,

This time I evaluate Aspose.Words and found, that it is unable to convert my MHT file to PDF correctly. Microsoft Word converts this MHT file to PDF with ease.

So, please let me know if you plan to fix this issue? Or this is just evaluation version limitation?

You can download my test MHT file from:
https://download.print-driver.com/ex/mb/aspose/my-test.rar

Mikhael

@mikhaelbolgov

We have converted the shared MHT to PDF using the latest version of Aspose.Words for .NET 21.6. The output PDF looks good. Please check the attached PDF file.
21.6.pdf (412.4 KB)

Could you please share some detail about the issue that you are facing? We will then answer your query accordingly.

PDF file you shared for me looks well.

Please look at PDF file I attached. 3 files an attachment.pdf (130.6 KB)

Here is code snippet I use to create this PDF:

Dim sFile = “C:\In\3 files an attachment.mht”
Dim sOutFile = “C:\Out\3 files an attachment.pdf”

Dim myDoc As New Aspose.Words.Document(sFile)
myDoc.Save(sOutFile, Words.SaveFormat.Pdf)

Please let me know what should I change to fix this issue.

Mikhael

image.png (423.3 KB)

@mikhaelbolgov

We have not found the shared issue at our end. Please use the 30 days temporary license and apply it before importing MHT to Aspose.Words’ DOM. Please also make sure that the images are accessible to your application.