Dears,
I'm wondering if there's way to have an optimized RenderDocument method.
Maybe in an up-to-date version? Using nuget, I got version 1.50.5147.0.
Here's a part of my code to generate document:
Code:
public void Write(string pdfPath, PdfInformation info, PdfHeader header, PdfFooter footer, PdfBody body)
{
var document = new Document {Info = {Title = info.Title, Subject = info.Subject, Author = info.Author}};
SetContent(document, header, footer, body);
var renderer = new PdfDocumentRenderer
{
Document = document
};
renderer.RenderDocument();
renderer.PdfDocument.Save(pdfPath);
}
Using Performance monitor on VS2019, it is clear that RenderDocument takes 26000 ms. I'd like to add that my table got 8490 rows.
Thanks for your advices.
Kind regards