Free Support Forum - aspose.com

HTML to PDF - Out of memory exception

We are creating HTML to PDF with below code.

Aspose.Pdf.HtmlLoadOptions objLoadOptions = new Aspose.Pdf.HtmlLoadOptions();
objLoadOptions.PageInfo.Margin.Bottom = 10;
objLoadOptions.PageInfo.Margin.Top = 20;
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(new MemoryStream(Encoding.UTF8.GetBytes("HTML_CONTENT")), objLoadOptions);

Sample.zip (256.1 KB)

Please provide an appropriate solution.

Thanks.

@serversupport

Thanks for contacting support.

We have tested the scenario in our environment and noticed that the code was taking more than 30 mins resulting system hung up. It would really be helpful if you can please share the exception message and StackTrace with us along with your environment details. We have tested the scenario in an environment i.e. Windows 10 EN x64, 8GB RAM, Intel Core i5, VS 2010 Ultimate.

Here I attach error details. Please find the attachment.

Details.zip (11.5 KB)

@serversupport

Thanks for sharing requested details.

We have logged an issue as PDFNET-44775 in our issue tracking system, with all provided details. We will further look into the details of the issue and keep you informed with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

Meanwhile can you please provide an alternate solution as this is very critical for our organization.

@serversupport

Thanks for contacting support.

I am afraid that we cannot share any workaround now, as issue is pending for investigation and it will be resolved on first come first serve basis. However, if issue is blocker for you and needs to be resolved on urgent basis, we request you to please check Paid Support model, which we offer to our customers for urgent issues.