[EMAIL PROTECTED] wrote: > > Hi, > > I am trying to generate a pdf using XML. through iText.In the XML when I > add table tagit is giving ClassCastException.Infact for any nested tags > it is giving this exception. > > Please let me know how to handle this. > _java.lang.ClassCastException_: com.lowagie.text.Table
Are you using XmlParser? You're better off writing your own handler as is explained in the book. In a recent project, I had to produce both HTML and PDF. I used XSLT to produce the HTML and iText's HTMLWorker to produce the PDF. The result was very nice. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
