phplaravelmpdf

Break very long words with php mpdf


I have generated pdf file, everything works just fine, just one thing, if I write very long word for example:

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

All document becomes small and unreadable, for some reason it tries to fit the word in 1 row instead of braking it. (I have tried word breaks,$mpdf->shrink_tables_to_fit and autosize's) nothing helps.

Thank you in advance.


Solution

  • Add css property overflow:wrap; to your table or div