Quoting "Trosien, Michael" <[EMAIL PROTECTED]>: > Hi*, > I have a problem using iText, XML and the SAXParser. It's not really a > problem, but a question. I use XML for describe the pdf I want to > generate with iText. I use the SAXiTextHandler. Now I'm looking for an > easy way to define XML-Tags like > > <chunk value="XXX".../> > > I think, if I want to use something like this I have to subclass the > SAXiTextHandler and define "value" to replace "XXX". > > Isn't there an easier way to define or declare values from a bean or a > database in my XML to generate a dynamic pdf??? Or is it possible to > give a map or someting else to the document, where the values and > placeholders a defined?
Isn't there an example like that here: http://www.lowagie.com/iText/tutorial/ch12.html class MyMap extends TagMap { public MyMap(String tagfile) { super(tagfile); XmlPeer peer = new XmlPeer(ElementTags.CHUNK, "SPEAKER"); peer.addValue(MarkupTags.CSS_FONTSIZE, "10"); peer.addValue(MarkupTags.CSS_FONTWEIGHT, MarkupTags.CSS_BOLD); peer.addValue(ElementTags.GENERICTAG, ""); put(peer.getAlias(), peer); } } br, Bruno ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
