I can reproduce this with
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Stopwatch watch = new Stopwatch();
string html = @"<strong>This is a test for converting HTML string to PDF </strong>";
HtmlConverter.PluginPath = "C:\\SpirePDFConvert\\plugins";
Spire.License.LicenseProvider.SetLicenseFileFullPath("C:\\SpirePDFConvert\\license.elic.xml");
using var ms = new MemoryStream();
for (int i = 0; i < 10; i++)
{
watch.Start();
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert(html, ms,false,10 * 1000,PdfPageSize.A4,new PdfMargins(0, 0),Spire.Pdf.HtmlConverter.LoadHtmlType.SourceCode);
watch.Stop();
long total = watch.ElapsedMilliseconds;
watch.Reset();
Console.WriteLine($"{total} ms");
}
}
This is an anonymous email - so I do not get spammed
Running slow on Windows Server 2016 Standard, running fine on a Windows Server 2016 Datacenter. both plenty of ram, disk and cpu
Output:
Hello World!
30598 ms
30161 ms