views:

1081

answers:

2

I am trying to generate PDF files containing large numbers of tables. Each PDF could potentially be 150 pages in length.

When using ITextSharp, the file sizes are up to 16 megabytes and have no noticeable shrinkage when zipped.

When using PDFSharp, the file size is very reasonable at 2 or 3 megabytes but it takes an unacceptable length of time (I canceled it after 3 minutes) to generate the document.

Does anybody have a suggestion of generating complex PDF files efficiently w/ .NET?

A: 

When my company tested out the performance of writing out PDFs we chose TallPDF by TallComponents. I wrote a wrapper around the lib and thought it was pretty easy to work with and did perform well on large datasets.

CSharpAtl
+2  A: 

You say PDFsharp but you actually use MigraDoc. Yes, table rendering with MigraDoc Foundation is still slow.

We have this issue on our task list for the forthcoming releases.

The best place to ask PDFsharp and MigraDoc Foundation related questions is the PDFsharp forum. The PDFsharp Team will not monitor stackoverflow.com on a regular basis.

PDFsharp Forum:
http://forum.pdfsharp.net/

PDFsharp Team
@PDFsharp Team - was this ever fixed or is performance still an issue here?
ooo
When it comes to table rendering, performance is still not as good as it could be.Table rendering is fast enough for our applications, therefore this didn't have highest priority for us so far.It should be fixed with the next release which will hopefully be out late(r) this year.
PDFsharp Team