I've looked through the archives and didn't really see anything that helped answer my question, so I hope it hasn't been already answered. What I'm trying to do is create a pdf which takes fragmented html text from a DB and outputs it into groups.
example: general faqs: 1. question answer 2. question answer ... computer faqs: 1. question answer 2. question answer The number of questions and answers is unknown and the text of each would look something like <b>question</b> <b>this is the answer</b><ol><li>test</li></ol>. The text is also, pretty much, unknown because the user can enter the text. I initially tried to use the ColumnText, but I wasn't sure what to set the size to because I don't know how big each of the lists are going to be. I then tried to do something like: ArrayList p = HTMLWorker.parseToList(stringReader, null); for (int k = 0; k < p.size(); ++k) document.add((Element)p.get(k)); The problem that I'm having with the above is that the lines will write over each other until it reaches an html list (ordered or unordered). After it outputs the list everything works fine. Any help with either of the above ways would be appreciated. Thanks, Mike ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions