Free Support Forum -

Html to PDF is very slow


I was wondering if I can do something about the rendering time.

See attachments for test html files.
It takes about 5 seconds to render test1.html and about 80 seconds to render test2.html
The resulting pdf files are rendered OK, but it just takes too long.

My code is as follows: (Aspose.pdf.dll version

var license = new License();
license.SetLicense(…path to license…);
var htmlLoadOptions = new HtmlLoadOptions { InputEncoding = “UTF8” };
var file = “d:\test2.html”;
var doc = new Aspose.Pdf.Document(file, htmlLoadOptions);
doc.Save(System.IO.Path.ChangeExtension(file, “.pdf”));

Hi there,

Thanks for your inquiry. For processing Aspose.Pdf does not create temporary files but uses system memory. So processing depends upon the system resources along with file size/contents.

We have noticed that API taking long for test2.html conversion, so we have logged an investigation ticket PDFNEWNET-38944 in our issue tracking system for further investigation and rectification.

We are sorry for the inconvenience caused.

Best Regards,