I have an MHTML file that is causing an error when I try to convert it to PDF. The error is:
“An unhandled exception of type ‘System.StackOverflowException’ occurred in Aspose.PDF.dll”
A snippet of the code I am using is:
Aspose.Pdf.MhtLoadOptions options = new Aspose.Pdf.MhtLoadOptions();
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filePathSource, options);
pdfDocument.Save(filepathTarget);
The attached zip file contains a copy of the MHTML that triggers the error. It also includes a copy of the EML file from which the MHTML was derived.