I am interested in creating tables in a PDF document with XML using iTextSharp. I cannot afford the book, and i cant find any examples on the web. I also need to be able to make cellspanning and avoid page breaks in the middle of a table. I would rather prefer the table being sent to the next page.
This is the example ive been follwing: http://www.codeproject.com/Articles/66948/Rendering-PDF-views-in-ASP-MVC-using-iTextSharp.aspx
Does anyone know how to accomplish this or can direct me to some tutorials?
Thanks
If you’re using iTextSharp 4.x then you can continue using
ITextHandlerto parse iText-specific XML. To the best of my knowledge this feature has been removed from the 5.x versions so unfortunately you’re going to have a hard time find support for it. Below is the DTD for the iText XML, hopefully this will help.I can’t say why it was removed but I can guess that it had something to do with the fact that if you can write XML you might as well just write regular code. Also, building and maintaining a PDF library while also maintaining a meta-language (XML) for your library is a lot of hassle. So know this, I would personally recommend skipping the XML and just working with the native iTextSharp library.