when I use nested table with PdfPTable. A problem is that if I set the 
background color of the inner Table(by setting the bgcolor of the 
cells), there is always some empty space between inner table and grid of 
outter table. How to fill the cell completely?

my code:

 PdfPTable outterTable = new PdfPTable(1);
 PdfPTable innerTable = new PdfPTable(1);
 Paragraph ph = new Paragraph("", 
PdfFontFactory.getInstance().getNormalFont());
 PdfPCell cellLabel = new PdfPCell(ph);
 cellLabel.setBorderWidth(0);
 cellLabel.setBackgroundColor(Color.BLACK);
 innerTable .addCell(cellLabel);
 outterTable .addCell(innerTable );

Thanks



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to