I am using Java & Itext2.1.7 for generating pdf and I have written the following HTML. But it is not breaking words when they are too long.
String td ="<td colspan=\"2\" align=\"left\" style=\"table-layout: fixed;word-wrap:break-word;white-space: normal;\"><b>"
+ verylongwordverylongwordverylongword + ":</b></td>"
Can someone help me achieving this?
Itext 2.7.1 does not support word-wrap : break-word property. Following is the link for that.
http://demo.itextsupport.com/xmlworker/itextdoc/flatsite.html
So I have manually break the words according to the no of columns of the Table and by taking assumption of maximum letters around 60-65.Following is the code for that.