I am writing code that generates both PDF and RTF documents, depending on the
user's selection. The information in both documents is the same. Until now,
we were using classes like Table, Cell, HeaderFooter, etc., which are
rendered into the correct form by the documentwriter (either PdfWriter or
RtfWriter2). However, the further I get into trying to make changes (mostly
because the upgrade to iText 2.1 left the spacing a little quirky), the more
I'm being told to "use PdfpTable", or "Use pageEvents to set headers". It
seems like a lot of the generic classes are being deprecated. I am thinking
of revamping the code to separate out the table creations for PDF and RTF.
However, all the iText tutorial stuff seems to actually recommend using
Table in an instance where both PDF and RTF documents are needed.
Additionally, it appears that while there is a PdfpTable class, there is
nothing similar for RTF, so I would be using Table anyway, which would leave
me vulnerable to all the quirks that come along with the now unsupported
Table class. Basically, what are the benefits/downsides of separating the
code into two sections -- one to create PDF documents, and one to create the
same documents in an RTF format, if that was selected? And where does
SimpleTable come in to all of this? Will it give me the flexibility that I
need?

Thanks!

-- 
View this message in context: 
http://www.nabble.com/PdfpTable-vs.-Table-%28vs.-SimpleTable-%29-tp24329241p24329241.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to