Hi, I am new to iText. I am using iText for my pdf creation. I am accessing text data from database and using servlet to create the pdf.
My text data (from database) has html tags, like <em>, <sub> etc. In the following code the 'data' is a String and contains text with tags. Presently these tags are printing as it is, for example with <sub> i </sub>, the output is <sub> i </sub> How can I use HtmlWorker in this case? --------------------------------------------------------------------------------------------------- PdfWriter pw = PdfWriter.getInstance(document,response.getOutputStream()); document.open(); Paragraph p = new Paragraph(data,font); document.add(p); document.close(); ---------------------------------------------------------------------------------------------------- Thanks, BioFly -- View this message in context: http://www.nabble.com/parse-Html-tags-%28text-from-database%29-tp21422359p21422359.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ 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
