I have following simple example :
| X | -> X cell has colspan=3
|Y| Z| -> Z cell has colspan=2
If i use rowSpan = 2 for first cell the output is wrong : like | X | Y |
Document document = new Document(PageSize.A4);
PdfWriter.getInstance(document, new
FileOutputStream("tablePDF.pdf"));
document.open();
PdfPTable table = new PdfPTable(3);
table.setWidthPercentage(100);
Font font = FontFactory.getFont(FontFactory.TIMES, 10);
PdfPCell cell = new PdfPCell(new Phrase("X", font));
cell.setMinimumHeight(12);
cell.setVerticalAlignment(PdfPCell.ALIGN_MIDDLE);
cell.setColspan(3);
cell.setRowspan(2); // PROBLEM
table.addCell(cell);
cell = new PdfPCell(new Phrase("Y", font));
table.addCell(cell);
cell = new PdfPCell(new Phrase("Z", font));
cell.setColspan(2);
table.addCell(cell);
document.add(table);
document.close();
--
View this message in context:
http://old.nabble.com/Rowspan-BUG-tp26709291p26709291.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/