Why is word wrap not working in Visualforce?

Why is word wrap not working in Visualforce?

I cannot get word-wrap to work in a VisualForce page, which is rendered as a PDF. There is a table with a column called Comments and this contains a long string without any spaces. The long string is pushing the rest table off the PDF page.

Why does long line of text not work in PDF?

Long line of text doesn’t wrap properly when PDF is generated via visualforce. It also doesn’t respect CSS word-wrap and word-break properties and those do not work properly when set to break-work and break-all, respectively.

Is there a PDF rendering engine for Salesforce?

Salesforce has released a pilot version of their new improved pdf rendering engine ( details here ). Being based on a chromimum engine the output matches what debugging results in chrome and has full support for css paged media. While it does appear to have some scalability issues associated with the current version, it’s stated intention is to add

Why is CSS break word not supported by Microsoft?

It maintains the integrity of the “word” so as to avoid confusion for the reader. This causes the field to expand, stretching past the boundaries of the page and causing unusual behavior for the record, making it appear “broken.”

How to achieve word wrapping for columns in apex?

Often what we see is that the text get’s “Cut off” half way through the paragraph. So the text is wrapping in the column, but the PDF doesn’t render the full column. Instead of the formatting changing the wrap parameters it simply removed a 1/4 of the paragraph.

How to make a Visualforce page a PDF file?

You can generate a downloadable, printable PDF file of a Visualforce page using the PDF rendering service. Convert a page to PDF by changing the tag.

How to render a page as a PDF file?

Convert a page to PDF by changing the tag. A Visualforce page rendered as a PDF file displays either in the browser or is downloaded, depending on the browser’s settings. Specific behavior depends on the browser, version, and user settings, and is outside the control of Visualforce.

Is there way to wrap words in CSS 2 / Flying Saucer?

Flying Saucer only supports a handful of CSS 3 attributes and the word-wrap attribute is not one of them. Flying Saucer has strong support for CSS 2.1. Is there a way to wrap words in CSS 2.1/Flying Saucer?