Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wkhtmltopdf: text wrapping issue

Tags:

wkhtmltopdf

I have a text without spaces in html and want to convert it to pdf using wkhtmltopdf, but I met some wrapping issue. Text is wrapped on other point in pdf, as on image:

http://irok84.kei.pl/share/wrap.png

Anyone knows a reason or solution for this issue?

like image 997
JakubK Avatar asked Oct 25 '25 13:10

JakubK


1 Answers

In some cases, adding the css rule

white-space:nowrap;

to the text container fixes the problem.

like image 66
Déjà vu Avatar answered Oct 28 '25 04:10

Déjà vu