Quoting D S S Sampath Kumar <[EMAIL PROTECTED]>: > 1.The Chapter is always starts in the new Page. Is it possible to set to > start with newline instead of new page (like I have Paragraph, which occupies > half of the page, then I want to add the Chapter immediately after the > Paragraph (very next line) Is possible? otherwise guide me to do this other > way.
Not that I know of. > 2. Current version I couldn't able to add any element after adding the > elements from XML it throws com.lowagie.text.DocumentException: The document > has been closed. You can't add any Elements. Override the Handler class so that the document isn't closed while parsing. Look at the way it is done in the Chapter 12 example: http://www.lowagie.com/iText/examples/Chap1201.java if (isDocumentRoot(peer.getTag())) { return; } > 3. How to define the XML tags for Table & Cells. <table> <row> <cell></cell> ... <cell></cell> </row> ... <row> <cell></cell> ... <cell></cell> </row> </table> See the constructors of Table and Cell that take a Properties object as parameter to see what attributes are possible. > 4. Is it possible to mix XML & the values we get from Application, like > declare some variables in the XML file & those values should be replaced by > the values from the application? > > Example: - > > Values in XML will be: "the Sum Assuered is <SUM_ASSUERD>" > > This <SUM_ASSUERD> should be replaced by the values from application at > runtime. It should be <SUM_ASSURED /> and yes it's possible: http://www.lowagie.com/iText/tutorial/ch07.html#datamerging http://www.lowagie.com/iText/examples/Chap0705.java Make an XmlPeer and set the content: XmlPeer peer = new XmlPeer(ElementTags.CHUNK, "SUM_ASSURED"); peer.setContent("1.000 $"); Add this peer to the tagmap. br, Bruno ------------------------------------------------------- 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
