mistercam wrote: > I hope my explanation is a bit more clear. A picture says a thousand words. Now I understand.
I fear that PdfPTable is too limited for this kind of requirement, but maybe I have to sleep a night over this problem. If I had to build a solution right here, right now, I'd switch from using PdfPTable to ColumnText. If I was certain that column 2 is always at least twice as high as the image, I'd use a Cell event, not to change a cell as you suggested, but to add the image. How would this work? Well, I would add a cell without any content, but add a cell event that has a reference to the image. When the cell event is triggered, I would check if the image fits the rectangle passed to the cell event. If it doesn't, I'd do nothing: the image doesn't match the cell. If it does, I'd add the image at absolute coordinates using PdfContentByte.addImage(). However: what if the second column is split over two pages, and there's not sufficient space for the image, not on the first page, and not on the second page? In that case, the image would never be drawn... I wonder if there's a way to work around this. I wonder what setMinimumHeight does if a cell is split in two (I should check the iText source code, or you could make a prototype). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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/
