Hi,
I have a table with a custom image background. I am using PdfpTableEvent to
set this background.
The header cells of this table uses some other color, different from the
table background.
To set this background color, I am using PdfPCellEvent.
PdfPCellEvent docHistTableHeaderCellEvent=new PdfPCellEvent(){
public void cellLayout(PdfPCell cell, Rectangle
rect,PdfContentByte[] canvases) {
PdfContentByte
backCb=canvases[PdfPTable.BACKGROUNDCANVAS];
backCb.setRGBColorFill(0xFF, 0x00, 0x00);
backCb.rectangle(rect.getLeft(), rect.getBottom(),20,
10);
backCb.fill();
backCb.resetRGBColorFill();
}
};
This seems to be setting the red color rectangles, in a fixed location (top
of the table) and not adapting to the table headers positions.
Please advice. Any pointers to similar issues will be highly appreciated.
Thanks a lot in advance!
Cheers,
Subhro.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
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