Text in rowspan cell breaks on page break
<p>I am using iText 5.5.4 to generate a pdf.</p>

<p>I have a a bunch of rows that should be grouped together and have a rowspan cell to name the group. But, on page break, the word "GRP" is broken into "G"
 and "RP". Is there a way to make group unbreakable so that it will be drawn on next page if it can't fit on the current one? </p>

<p>I tried <code>keepRowsTogether</code> and <code>setBreakpoints</code>, but didn't get consistent results.</p>

<pre><code>-------------------
| G |    row 1    |
| R |    row 2    |
| P |    row 3    |
-------------------
</code></pre>

<p><br>
Layout Image:</p>

<p><img src="https://i.stack.imgur.com/cy2NK.png" alt="Layout Image"></p>

<pre><code>Document document = new Document(new Rectangle(300, 125));
PdfWriter.getInstance(document, new FileOutputStream(dest));
document.open();
document.add(new Paragraph("Table with setSplitLate(true):"));
PdfPTable table = new PdfPTable(2);
table.setWidths(new float[]{1,5});
table.setSpacingBefore(10);
PdfPCell cell = new PdfPCell();
cell.addElement(new Paragraph("G"));
cell.addElement(new Paragraph("R"));
cell.addElement(new Paragraph("O"));
cell.addElement(new Paragraph("U"));
cell.addElement(new Paragraph("P"));

//PdfPCell cell = new PdfPCell( new Phrase("GROUP"));
//cell.setNoWrap(true);
//cell.setRotation(90);
//cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
//cell.setHorizontalAlignment(Element.ALIGN_CENTER);

cell.setRowspan(5);
table.addCell(cell);
table.addCell("row 1");
table.addCell("row 2");
table.addCell("row 3");
table.addCell("row 4");
table.addCell("row 5");
document.add(table);
document.add(new Paragraph("Table with setSplitLate(false):"));
table.setSplitLate(false);
document.add(table);
document.close();
</code></pre>

<p><a href="https://i.stack.imgur.com/gpaq4.png" rel="nofollow noreferrer">PDF Output from above code</a></p>