About us | News | Contact
iText ® Licenses Support   
You are here: Home > Forums > iText in Action — Second Edition > Part 1: Creating PDF documents from scratch > Chapter 4: Organizing content in tables
User login
  • Request new password

Tables in Paragraphs

Submitted by Anonymous Newbie on Sat, 02/26/2011 - 09:50

Apparently it's allowed to add a PdfPTable to a Paragraph, but the table doesn't show up when used in a ColumnText object.

‹ document.newPage() problem. Tables, Cells, and background colors... ›
  • Login to post comments

Not a good idea

Submitted by Bruno Lowagie on Sat, 02/26/2011 - 09:52.

You may be correct. I think adding a table inside a paragraph works with document.add(), but not with ColumnText. In any case: it's not a good idea to wrap a table in a paragraph (it's an example of bad taste in coding); we may disallow this in a future version.

  • Login to post comments
Content © 2010 1T3XT BVBA