But Table has the useful setTableFitsPage method, while PdfPTable has not. I had to roll back my use of PdfPTable in my software, because it is unclear how can I control page breaks with PdfPTable. This came from my need to render two paragraphs in the same page.

Carlos Amengual


Bruno wrote:


Quoting Roberto Cipollini <[EMAIL PROTECTED]>:



Can anyone explain why PdfPTable is better than Table?



Table was written to make tables in PDF, HTML and RTF.
You know Tables are a problem in simple HTML (without CSS features).
Depending on the browser, HTML Tables get printed in very odd ways.
The same happens with class Table. With Table you have to accept
the features/bugs as they are.
PdfPTable was written to compose table in PDF only (no HTML, no RTF).
You get a lot more control over the layout of the table.
If the result with PdfPTable isn't what you expected, it's probably
a bug in your own code ;-)






-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to