yogesh wrote: > Hello, > I want to include html text directly into a pdf document. The html > text is contained within a string which is actually obtained by querying > the database. As a test, i am hard quoting a sample html text which > should be rendered as bold. (snip) > However, in the pdf document, the text is rendered with the bold tags > and not in html.
Of course it is. You need to run the HTML through HTMLWorker. This HTMLWorker will return you a list of iText objects. Have a look at the following example: http://itext.ugent.be/itext-in-action/examples/chapter14/ParsingHtmlSnippets.java It's explained in chapter 14 of the book on iText. http://itext.ugent.be/itext-in-action/ br, Bruno ------------------------------------------------------------------------- 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/
