Hi,

I am trying to make a table cell opaque using a background color but I am still 
able to see the text which is behind the cell. I want to move the cell to a 
absolute position and want to hide anything behind it. I tried the following 
but still I can see the line behind the cell

Can anyone please suggest something?
            PdfPTable table = new PdfPTable(1);
            table.setTotalWidth(width-25);
            table.setLockedWidth(true);        
            PdfPCell cell = new PdfPCell(new Phrase("Test"));            
            table.addCell(cell);
            
            PdfPTable table1 = new PdfPTable(1);
            table1.setTotalWidth(100);
            PdfPCell cell1 = new PdfPCell(new Phrase("Header"));
            cell1.setGrayFill(0.6f);
            
            table1.addCell(cell1);
            PdfContentByte cb = writer.getDirectContent();
            table1.writeSelectedRows(0, 50, 20, 820, cb);

Thanks and regards,
Shashikant

_________________________________________________________________
cricket and news. Logon to MSN Video for the latest clips
http://www.exploremyway.com
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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/

Reply via email to