iTextSharp PDF Template vs Complete Creation Experience?
Posted on 2015-01-09
So just looking for some feedback on thoughts on this and I am not looking for someone to agree with me purely to agree I want to take an open minded approach to this one way or the other. I have been tasked with creating an Invoice PDF that consists of a header which is just an image and Text that says 'Invoice' then the Body then a top section which is a Bill To that contains Address info such as Line1, Line2, Line3 all which I would need to suppress certain lines and move up if for example Line 3 is Null etc. Then there is a body that can have 1 to Many tables of fees in it. Last there is a bottom section also dynamic and standard page contact detail line.
My initial thoughts were to build the entire PDF from scratch the header, footer and then body section using tables and phrases etc. with line positions etc. to control it. The other option is to create a PDF template with Adobe with form fillable fields but I would have to see how does this work with suppressing lines filling in a body section that can grow and shrink etc. Pros and Cons to both etc. One way is if the template changes we just change the look and feel in the template but still all other areas are dynamic.
Appreciate the feedback from those that have used PDF Template with iTextSharp.