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

Free Support Forum - aspose.com

OutOfMemory when printing specific HTML

Hi Aspose,

I got OutOfMemory exception when printing report.html to pdf (SummaryReport.zip (181.1 KB)
). After further investigation I’ve found workaround - to escape HTML tag <b>. In attached document it is ‘<b>Test</b>’ for Keywords Built-in-Properties section.

Best regards,
Alex Shloma


Thank you for contacting support.

We have used below code snippet in our environment with Aspose.PDF for .NET 18.11 but OutOfMemoryException is not thrown. Would you please share a sample console application with us so that we may try to reproduce and investigate it in our environment.

var baseDir = @"D:\SummaryReport\";
HtmlLoadOptions LoadOptions = new HtmlLoadOptions(baseDir);
Document document = new Document(baseDir + "report.html", LoadOptions);
document.Save(baseDir + "Aspose.PDF_18.11.pdf", Aspose.Pdf.SaveFormat.Pdf);

Hi @Farhan.Raza,

Please see sample application (396.0 KB) to replicate this issue.

Best regards,
Alex Shloma


Thank you for sharing requested data.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45824 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.