Hi,

I'm having the same problem... But I don't know how to
do this...

PdfPTable doesn't have all the things I'm useing with
the class "Table". 

Could you send some code example?

Thanks,

Nairo Granados

 > -----Original Message-----

Use a PdfPTable and the problem will go away.
Alternatively put the image in an onStartPage event in
a PdfWriter.getDirectContenUnder().
 
 Best Regards,
 Paulo Soares

 
 Best Regards,
 Paulo Soares
 
 > -----Original Message-----
 > From:        Benjamin Bohlmann [SMTP:[EMAIL PROTECTED]
 > Sent:        Monday, November 10, 2003 13:38
 > To:  [EMAIL PROTECTED]
 > Subject:     [iText-questions] Problem with Watermark &
Table/Cell Border
 > 
 > 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
 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to