PDF generation taking infinite time for large data and results in OutOfMemory Exception

@asad.ali I am using licensed version of aspose pdf and trying to create a PDF file but when large size data is passed then it takes infinite time and results in OutOfMemory exception.

In my attached code file, See the method named “GeneratePDF()”,

  1. Covertext string contains large size data whereas covertext1 contains small size data.
  2. coverText gets into infinity when it reaches to “myDocument.ProcessParagraphs();”
    method (keeps on loading if you see in Diagnostic Tools).
  3. coverText1 generates pdf properly as it’s having small size data.

Please let us know how to solve this issue as we have already done so much R&D but no success achieved yet. It’s an urgent requirement.

Below is the attched csharp file.
Form1.zip (5.0 KB)

@glenfield

We tested the scenario in our environment while using Aspose.PDF for .NET 20.12 and we were unable to notice any issue.

htmlFragment.pdf (217.3 KB)

Would you kindly try using the latest version of the API and in case you still face any issue, please let us know.