Simple HTML to PDF Conversion, high memory, high cpu load and 5min

Hi,

we did some evaluation tests. A simple static html2pdf conversion takes minutes and a peak of 3GB memory test.zip (26.5 KB)
. Is this normal.

class Program
{
static void Main(string[] args)
{
if (args.Count() > 1)
{
// Create HTML load options
HtmlLoadOptions htmloptions = new HtmlLoadOptions();
htmloptions.IsRenderToSinglePage = true;
htmloptions.IsEmbedFonts = true;
// Load HTML file
Document doc = new Document(args[0], htmloptions);
// Convert HTML file to PDF
doc.Save(args[1]);
Console.ReadLine();
}
}
}

Marcel

@roggmaeh

The conversion time depends upon various factors to be noticed i.e. structure and complexity of the content, environment where API is being used, etc. Would you kindly share the complete environment details with us i.e. OS Name and Version, Installed RAM Memory, Application Type, Target Framework. We will test the scenario in our environment and address it accordingly.

Hi,

here are the specs.

Windows 10 Pro 2004
32GB RAM
Framework 4.6.2
Console Application (attached)Apose.Html2Pdf.Test.zip (8.1 KB)

@roggmaeh

We have managed to observe the memory consumption and time cost in our environment while using Aspose.PDF for .NET 20.9 and logged a performance issue as PDFNET-48868 in our issue management system. We will further look into its details and keep you informed with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.