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"> </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