you will need the HTMLWorker (Java):
FileReader fr = new FileReader("c:/HelloWorld.html");
StyleSheet ss = new StyleSheet();
ss.loadStyle("body", "face", "Verdana");
ArrayList elementlist = HTMLWorker.parseToList(fr, ss);
for (int i = 0; i < elementlist.size(); i++) {
Element element = (Element)elementlist.get(i);
}
in the for loop you need to add your element to a pdfcell for example. ss
can be null if you do not want to apply a stylesheet
rajasekhar.amirapu wrote:
>
> I am getting some text in html format, i want to render the same in a
> table using iText in generation of PDF If i use the normal table the
> content is getting displayed with html tags.I want the html content to
> rendered and shown.
>
>
>
> Thanx & Regards,
>
> Raja Sekhar Amirapu
>
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
--
View this message in context:
http://www.nabble.com/HTML-Tags-in-pdf---Display-the-rendered-content-using-IText-tf2635971.html#a7359929
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/