Hi bruno I remember you telling me before that implementing a
watermark image onto the document and combining it with xml tagmap
wont work.

Will it be possible in a future version of iText?

I copied some code from D:\iText\examples\Chap1003.java and combined
it with this line of code

XmlParser.parse(document, new FileInputStream("test.xml"),
"tagmap.xml");
>> which contains only the word "test"

What happened is that the so called watermark images are all shown in
the first page while the test word appears in the 2nd page.

Mark



-----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

Reply via email to