Hi Folks,
Suppose if I have a PdfPTable(4).
And I only add 3 PdfPCell(), each with custom cell event, then cellLayout()
method in the cell events, are not called.
However, if i add, lets say 5 cells, then for the first 4 cells, the cell
events are called, but not for the one remaining cell.
I know, I am doing something insanely, wrong. Please be kind!! Please help!!
PdfPTable imageTable=new PdfPTable(4);
imageTable.setTotalWidth(document.getPageSize().getWidth());
for (int j=0;j<sourceData.getSourceList.size();j++){
SomeData sig = getSomeDate();
Image waterMarkImage=Image.getInstance("watermark.png");
waterMarkImage.scalePercent(20);
PdfPCell imgCell=new PdfPCell();
imgCell.disableBorderSide(Rectangle.BOTTOM|Rectangle.TOP|Rectangle.RIGHT|Rectangle.LEFT);
imgCell.setCellEvent(new
MyImageCellEvent(sig,waterMarkImage));
imageTable.addCell(imgCell);
}
imageTable.writeSelectedRows(0, -1, imgTableXpos, imgTableYpos,
directcontent);
MyImageCellEvent is the custom cell event class.
Thanks,
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