By the way, the word "test" appears on the 2ndpage because of the line
document.newPage(); But if I take that out, the "test" word appears in the first page but the so called watermark images don’t appear anymore. -----Original Message----- From: Bruno [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 4:21 PM To: MK Lee Cc: [EMAIL PROTECTED] Subject: Re: [iText-questions] Re: Watermark problem Quoting MK Lee <[EMAIL PROTECTED]>: > > > I tried to insert a watermark with : > > > public void onEndPage(PdfWriter writer, Document document) { > > > System.out.println("end added" + doc.add(page.waterMark) + ":" > > > + > > > page.waterMark.offsetX() + " x " + page.waterMark.offsetY()); > > > } You are mixing 2 different approaches. You can use doc.add(watermark) BEFORE opening the document with doc.open(). In that case, you perform the action ONLY ONCE, not everytime a page ends. You can use a PageEvent to add the watermark at absolute positions on every page the way Paulo described. br, Bruno ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
