As a follow-up, I initially tried using Paragraph.setKeepTogether(true) which
worked for single-paragraphs with the same alignment, but did not work if I
had a set of elements with different paragraphs and/or alignments. The
solution that worked the best was to add a single outer table, set
PdfPTable.setSplitRows(true) for that table, and then add a nested table as
a single cell to the outter table, with each row of the inner table
corresponding to the elements I want to group.
It works, but its not the most elegant aspect of the API to work with. It
would be nice if there was a way to group high-level elements of a column
within the API.
--
View this message in context:
http://www.nabble.com/ColumnText-Grouping-KeepTogether-tp21773892p21780061.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php