Tom.Li wrote:
> 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?

The 'empty space' you're seeing is the padding (the space
between the outer cell and its content). If you want to avoid it,
do outterTable.getDefaultCell().setPadding(0);
Or you could set the background color of the outer cell:
outterTable.getDefaultCell().setBackgroundColor(Color.BLACK);

Or you could wrap the nested table inside a PdfPCell instead
of adding the nested table directly with addCell(). This allows
you to change the properties of the specific cell (without
changing the properties of the default cell).

br,
Bruno

-------------------------------------------------------------------------
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