Op 3/01/2011 23:37, david100 schreef:
> I have a webapp which uses a SAXParser to build a PDF document based on an
> XML file. The entire XML file is enclosed with a<lettter>  and</letter>
> tag. Does the</letter>  tag close the Document object? What does the
> </letter>  tag do? Is it equivalent to ending a Paragraph?

This is a very strange question. I assume that the <letter> tag in your 
XML is the root tag of your document. It was CHOSEN by the person who 
wrote the DTD or the XSD. The meaning of this tag is defined by that 
very same person. I assume he thought: the content of this XML document 
is a letter, so let's call the root tag <letter>.

Now it's up to you to interpret this tag. iText doesn't care what name 
was given to the tag. You have to deal with it in your DocumentHandler.

>
> I'm also trying to modify this webapp to build multi-page PDF documents by
> applying multiple XML files (one per page - each page has different
> content). Is this possible in iText 2?
This is possible if you make it possible. I don't recall I've ever had 
to do this, but IMO it's not that difficult to achieve. Just adapt the 
DocumentHandler you wrote to parse the single XML, and adapt it so that 
the Document object isn't closed when the closing tag of the root is 
encountered.
> Are there any examples in the iText 2
> book?
Not that I know of. It's not a very common requirement.


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to