Leena Kulkarni wrote:
> We are generating one xml on the fly

Why? If I want to go from Brussels to Ghent,
I don't make a detour to Paris. I use the
shortest way.

> and before parsing we are setting 
> the page numbers and the headers.

I don't understand how that can ever work?
How do you even know how many page number
there will be before you start parsing?
XML doesn't know about pages.

Typically you add page numbers in a page
event, as is done in the Romeo and Juliet
example in the tutorial.

> So basically we have all the 'parts' processed and are in the form of an 
> xml.
> I am doubtful if this would work for us.

I think we don't understand each other.

If you want to parse different XML files
into one PDF, you need to subclass the SAXiTextHandler.
It's a piece of cake to tell the page event implementation
another header/footer should be used for every separate
XML file.

Depending on your exact requirements, it could
also be a good idea to parse each different XML
into a separate PDF. Then concatenate and stamp
the headers/footers on the PDF. We called 'generating
a PDF in multiple passes'.

I don't know what solution would be best for you,
I don't know anything about the design decisions
that were made.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to