Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Html to PDF is very slow

$
0
0
Hello

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 10.5.1.0)

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"));

Viewing all articles
Browse latest Browse all 3131

Trending Articles