Memory Drain converting HTML to PDF in Aspose.PDF

Hi,

I’m trying to convert a tiny html document to pdf and get this issue that memory is going up constantly and out of memory eventually.

HTML:

<html>
  <head>
    <style>
      .container {
        display: flex;
      }
    </style>
  </head>
  <body>    
      <div class="container">
        <div class="slip-rule">
          <div class="slip-rule--content">
            <p>(DATE)</p>
          </div>
        </div>
        <div class="content">
          <div class="content-wrapper">
            <p>TEST</p>            
            <p>SAMPLESAMPLESAMPLESAMPLESAMPLESAMPLESAMPLESAMPLESAMPLE</p>
            <div style="page-break-after: always">
              <span style="display: none">&nbsp;</span>
            </div>
            <p>SAMPLESAMPLESAMPLESAMPLESAMPLESAMPLESAMPLESAMPLESAMPLE</p>
          </div>
        </div>
      </div>    
  </body>
</html>

.Net code:

HtmlLoadOptions options = new HtmlLoadOptions();
Document pdfDocument = new Document(_dataDir + "index.html", options);
pdfDocument.Save(_dataDir + "html_test.PDF");

The demo HTML to PDF app is also not working with this HTML.

Thanks,

Khoa Nguyen

@nhnkhoa

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55902

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.