Hi,
I hope that someone can help me on this. I want to generate a PDF using itext that
contains a table with borders and has a background-image/watermark. It works fine as
long as the table isn't above the watermark. In that case the part of the table border
that is supposed to be above the image is covered by it (only the part above/below the
image and not the entire border). The text within the cells shows up fine.
Some java source illustrating my problem is attached below. I already tried setting
the watermarks alignment to Watermark.UNDERLYING, but that didn't help.
thanks in advance,
Benjamin Bohlmann
The source:
Document doc = new Document(PageSize.A4);
PdfWriter writer = PdfWriter.getInstance(doc,new FileOutputStream("foo.pdf"));
Watermark wm = new Watermark(Image.getInstance("foo.gif"),0,0);
doc.add(wm);
doc.open();
Table t = new Table(3);
t.setBorderWidth(2);
Cell c = new Cell("foobar");
c.setBorderWidth(3);
t.addCell(c);
c = new Cell("foobar");
c.setBorderWidth(3);
t.addCell(c);
c = new Cell("foobar");
c.setBorderWidth(3);
t.addCell(c);
doc.add(t);
doc.close();
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions