Kristian Du wrote:
Hi Bruno,
Thanks for the quick reply.
Please stay on the mailing-list.
I would like to implement a header and a footer and I did read your
previous answers. The problem is that I have no clue on how to go about
- using PageEvents
- subclassing the handler and catch the specific tags
it's all in chapter 12 of the tutorial
http://www.lowagie.com/iText/tutorial/ch12.html
http://www.lowagie.com/iText/examples/Chap1201.java
If your Header and Footer are outside the XML: use PageEvents
See class MyPageEvents extends PdfPageEventHelper
in the java-sample mentioned above
If your Header and Footer are inside the XML: extend the Handler.
See class MyHandler extends SAXmyHandler in the same
java example.
Start with that example. Split it into a few separate classes
and experiment.
Would you happen to have some sample code on how to do the above?
Thanks once again. Have a good day.
--
Kristian
On Wed, 2003-06-25 alle 16:35, Bruno wrote:
Quoting Kristian Du <[EMAIL PROTECTED]>:
I have read in one of the previous postings that I should now create a
tagmap file to define what the <HEADER> and the <FOOTER> tags are, but I
have no idea on how to do this.
Where have you read this? I don't use headers and footers that
are in the XML. I add them using PageEvents.
If you want a Header or Footer tag in XML you should subclass
the handler and catch the specific tags...
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions