Apologies for posting a question on the same topic twice. 
Maybe I haven't explained my problem properly last time. I hope 
that was the reason why nobody replied to it :)....

Basically, I have managed to subclass the PageEventsHelper class
and I am now able to apply a "hard-coded Header and Footer" by 
overwriting the onEndPage() method.
The only problem now is to give the possibility to describe a
HEADER and a FOOTER tags within the XML input file to be converted.
What I am trying to achieve is something like this:


input.xml:
--------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ITEXT SYSTEM "file:///tmp/itext.dtd">
<itext creationdate="Fri May 02 15:54:45 CEST 2003" producer="iTextXML by lowagie.com">

      <paragraph leading="18.0" size="16" font="Times" align="center">
      Some text Some text Some text Some text Some text Some text Some text
      Some text Some text Some text Some text Some text Some text Some text
      Some text Some text Some text Some text Some text Some text Some text
      </paragraph>

      <HEADER>
        <paragraph>a header which might contain an image as well</paragraph>
      </HEADER>

      <FOOTER>
        <paragraph>a footer which might contain an image as well</paragraph>
      </FOOTER>

</itext>
---------------------------

Is this possible? I would like to be able to read what's inside the HEADER
and FOOTER tags and put them into two separate PdfTemplates for consequently 
placing them on their respective absolute positions on the every page.

I am really struggling because I am a Java and XML newbie :(...




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