Well, I encoded your example with iText 2.1.7 in Java:
PdfPTable table = new PdfPTable(2); table.setSplitLate(true); // default value PdfPCell largeCell = new PdfPCell(new Paragraph("Lorem ipsum dolor sit amet,\r\n" + "consectetur adipiscing elit. Curabitur\r\n" + "vel nisl quis turpis molestie blandit.\r\n" + "Donec a ligula sit amet quam feugiat\r\n" + "aliquet in id augue. Etiam placerat\r\n" + "massa ac ligula dictum convallis.\r\n" + "Mauris in leo quis lorem facilisis\r\n" + "tincidunt. Praesent lorem libero,\r\n" + "porttitor tincidunt egestas consequat,\r\n" + "tempor quis erat. Sed lorem ipsum,\r\n" + "posuere a ornare ac, viverra ut diam. In\r\n" + "porta ultrices tristique. Nulla non libero\r\n" + "a nisi pharetra consequat. Vestibulum\r\n" + "nunc urna, lobortis id ultricies vitae,\r\n" + "fermentum eu magna. Duis nibh lacus,\r\n" + "adipiscing at tempor eget, interdum\r\n" + "quis libero.")); PdfPCell cell = new PdfPCell(new Paragraph("Long Column")); cell.setRowspan(5); table.addCell(cell); for (int i = 0; i < 5; i++) { table.addCell(largeCell); }
And this works very well, as Kornelije asked ... "Invalid" output will only be generated when I use table.setSplitLate(false) , so with the default value true everything is just fine.
source share