Hi folks.
I know, that this subject has been discussed a lot, but I donĀ“t know if the "error" is perhaps "on my side"...
So what is the problem:
I am trying to generate some PDFs which consist mainly of tables. The length of the table can vary from 12 columns, 4 rows up to 12 columns 3000-4000 rows. I know that table rendering is very complicated and a bit slow with MigraDoc.
My performance is:
Generating the whole document (adding paragraphs, tables, formats, images and so on) in less then 1 second. After that, rendering starts and this rendering-process takes for the smallest version mentioned above about 6-7 seconds.
A larger version with about 500 table rows takes about 30 seconds.
A huge version of the table takes some minutes!
Please have a look at my "rendering code lines"... are these correct?
Code:
MigraDoc.DocumentObjectModel.IO.DdlWriter.WriteToFile(document, "MigraDoc.mdddl")
Dim pdfRenderer As PdfDocumentRenderer = New PdfDocumentRenderer()
pdfRenderer.Document = document
pdfRenderer.RenderDocument()
pdfRenderer.PdfDocument.Save(fileName)
The most time consuming line is
Code:
pdfRenderer.Document = document
.
So is ist possible to speed up this "rendering process"?
I hope I could describe what my problem is...
Regards
BeSt