Hi. First of all, sorry for my bad English. I have a problem with nested PdfPTable. When I put a PdfPTableinto another table where the seconds has a border bigger than first, the result is that the border exit to the border of first table. I have to use fixwith (instead of WidthPercentage). This is a sample of my code. Thanks.
PdfPTable table = new PdfPTable(1); float fl[] = { 580 }; table.setWidths(fl); table.setTotalWidth(fl); table.setLockedWidth(true); PdfPTable nested1 = new PdfPTable(1); nested1.setTotalWidth(580f); nested1.setLockedWidth(true); nested1.setHorizontalAlignment(Rectangle.ALIGN_CENTER); Phrase phr = new Phrase("1.1"); PdfPCell cell = new PdfPCell(phr); cell.setBorder(Rectangle.TOP |Rectangle.RIGHT |Rectangle.BOTTOM |Rectangle.LEFT); cell.setBorderWidth(3); cell.setBorderColor(Color.cyan); cell.setUseBorderPadding(true); nested1.addCell(cell); phr = new Phrase("1.2"); cell = new PdfPCell(phr); cell.setBorder(Rectangle.TOP |Rectangle.RIGHT |Rectangle.BOTTOM |Rectangle.LEFT); cell.setBorderWidth(3); cell.setBorderColor(Color.cyan); cell.setUseBorderPadding(true); nested1.addCell(cell); table.addCell("cell 1"); table.addCell(nested1); table.addCell("cell 3"); document.add(table); ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions