Well I tried making the last cell have a cellevent
the cellevent i wanted to draw the preview image but I couldnt get it to
show up
class OverseasPreview implements PdfPCellEvent
{
Image previewimage;
public void setImage(Image previewimage)
{
this.previewimage = previewimage;
}
public void cellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[]
canvas)
{
previewimage.setAbsolutePosition(36, 780);
PdfContentByte cb = canvas[PdfPTable.BACKGROUNDCANVAS];
try
{
cb.addImage(previewimage);
}
catch (Exception e)
{
}
}
}
Not sure why.
Or does cellsevents not able to have a image?
--
View this message in context:
http://www.nabble.com/Is-it-possible-to-have-a-img-as-a-background-while-text-on-top--tp18197747p18203650.html
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar