I have a requirement where need to generate the PDF document. if i add text which is more that 4000k then text gets overflow the screen and it comes in single line. How to add a line break so that the text should be in paragraph itself.
Discussion posts and replies are publicly visible
Use this CSS in the HTML before PDF generation: white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word;
If the text is inside a table, also set table-layout: fixed; width: 100%; and put the text in a <p> or <div>, not plain inline text.