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

Free Support Forum - aspose.com

Convert MHTML with embedded image to PDF

The attached file contains an MHTML email that includes an embedded image. Converting the file to PDF results in an incomplete conversion of the file.

The code snippet I am using is:

                        Aspose.Pdf.MhtLoadOptions loadOptions = new Aspose.Pdf.MhtLoadOptions();
                        Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filepathMhtml, loadOptions);

Note: Trying to convert the MHTML to PDF using Aspose.Words is unable to handle any of the image and simply outputs a red X.

Sample_Email_w_Embeded_Image.zip (6.8 KB)


We have tested the scenario using the latest version of Aspose.PDF for .NET 22.2 at Windows 10 and have not found the shared issue. So, please use Aspose.PDF for .NET 22.2. We have attached the output PDF with this post for your kind reference.
22.2.pdf (1013.6 KB)

Thank you for your assistance.