Stessy wrote:
HI,

Is it possible to insert an image as background in a PdfPCell in place of a
Color.
If I simply add an image in a PdfPCell and afterwards I insert a PdfPTable
in that pdfpcell, the PdfPTable is not displayed over the image but below.

Do you already have the code that generates your PdfPTable
without the background images? OK, then you should now create
a cell event and add the image to the layer UNDER the existing
content in the event.
Have a look at the following example that comes with the book:
http://itext.ugent.be/itext-in-action/examples/chapter10/PdfPTableCellEvents.java
The Ellipse class adds an ellipse to the background canvas.
The resulting PDF can be found here:
http://itext.ugent.be/itext-in-action/examples/chapter10/results/pdfptable_cell_events.pdf

It's up to you to make sure the event doesn't add an ellipse,
but an image.
br,
Bruno

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to