Hi Friends,

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>, <strong> etc. Presently all these tags are
displaying as it is. How can I process html tags in to the pdf output?

I am using the following code:

PdfContentByte cb = pw.getDirectContent();
ColumnText ct = new ColumnText(cb);
ct.addText(new Chunk(String text));
ct.go();


Thanks, 
BioFly


-- 
View this message in context: 
http://www.nabble.com/parse-Html-tags-%28text-from-database%29-tp21422359p22126037.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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

Reply via email to