We currently use TallComponents PDFKit.Net for rendering tedious state documents that have a number of form fields. Often we'll need to have a page that repeats many times within a single document. Most reports are 10 pages, with 3 unique template pages (pre formatted in Adobe), for example. We've worked with TallComponents to optimize for mutlipage rendering to take advantage of document flattening and the similarity of page definitions for repeatable pages. The particular optimization is difficult to work with (read: hacky) and is encapsulated within a MulitPageRendering class. But, now we have a new requirement that all fields must be editable (ie not flattened) and TallComponents is a beast for this stuff. Memory runs rampant, the document size explodes, and the process takes much longer. Were talking orders of magnitude on all 3 listed. We've looked at other pdf tools for our expensive merging process (PDFTron, ExpertPDF, AbcPdf), but I was wondering if people perform similar merging operations with a tool they've been satisfied with. I'm currently playing around with iTextSharp, but there are a ton out there.
A:
Can you not just use a reporting tool to generate the report you require? These are made specfically for formatting data?
We use Active Reports from http://www.datadynamics.com/default.aspx and can highly recommend it.
Mark Redman
2009-11-24 19:22:04
Hey mark, I don't need to format data, but fill form fields. It's a pretty dumb operation, and this solution looks a little overbaked for my needs.
Trent
2009-11-24 19:30:25
I see. I have heard PDFLib is good (http://www.pdflib.com/products/) but dont how compatible it is with .Net.
Mark Redman
2009-11-24 20:37:08
+1
A:
I've used iTextSharp. It's really low level, and has some quirkiness when it comes to page breaks, etc, but overall it works pretty well. I couldn't find anything else that had the low level capabilities we needed (we were doing some ridiculous reporting), so we didn't have much of a choice.
jvenema
2009-11-24 20:35:01
Its looks like iTextSharp has what I need, but the api is daunting. There is probably a million ways I could fill out a form's form fields, copy, and repeat. I've read good reviews on the book, maybe that's worth it.
Trent
2009-11-24 20:42:38
Got some really good results using PDFCopyFields and the PDFStamper for repeatable template pages. MUCH better than TallComponents.
Trent
2009-11-25 00:12:46
Yep, it's complex alright, like I said it's really low level. But it was the only thing that gave us the control we needed.
jvenema
2009-11-25 00:27:21