PDF from html plugin - Overflow of the text in normal paragraph field

Certified Associate Developer

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

Parents
  • 0
    Certified Lead Developer

    Try adding word-wrap and white-space CSS to your paragraph
    html<p style="word-wrap: break-word; overflow-wrap: break-word; white-space: pre-wrap; width: 100%;">
    your long text here...
    </p>

    word-wrap: break-word — breaks long words/strings at the container boundary
    overflow-wrap: break-word — modern equivalent, use both for compatibility
    white-space: pre-wrap — preserves line breaks (\n) from your Appian text field and wraps normally

Reply
  • 0
    Certified Lead Developer

    Try adding word-wrap and white-space CSS to your paragraph
    html<p style="word-wrap: break-word; overflow-wrap: break-word; white-space: pre-wrap; width: 100%;">
    your long text here...
    </p>

    word-wrap: break-word — breaks long words/strings at the container boundary
    overflow-wrap: break-word — modern equivalent, use both for compatibility
    white-space: pre-wrap — preserves line breaks (\n) from your Appian text field and wraps normally

Children
No Data