PDFsharp & MigraDoc Foundation

Migradoc RenderDocument performance
Page 1 of 1

Author:  GLDavid [ Tue Nov 17, 2020 2:10 pm ]
Post subject:  Migradoc RenderDocument performance


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:
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

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

Author:  TH-Soft [ Tue Nov 17, 2020 5:26 pm ]
Post subject:  Re: Migradoc RenderDocument performance

GLDavid wrote:
I'm wondering if there's way to have an optimized RenderDocument method.
I recommend the DIY approach: Take the latest source, run your code in a profiler, and look for bottle necks that can be improved.

I already tried my best:

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group