spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.68k stars 751 forks source link

Problem with justify text and bold #765

Open morriluca opened 1 year ago

morriluca commented 1 year ago

I want segnalate this bug. When I print to pdf thiscode

<style type="text/css">page,p,span,body{font-size: 15px; text-align: justify;}</style> <p><strong>XXXXXXX </strong>XXXXXXXXXXXXX XXXXXXXXX XX XXXX, Xxxxxx identificazione dello scafo:<b>XXXXXXXXXXXXXX</b>, Lunghezza Mt.: <b>18,03</b>.</p>

the text is printend in only row and exit out of the page. if a insert space from (first)scafo:<b>XXXX (after) scafo: <b>XXXXX the text will print correctly to new row.

Thank.

Rafapoldo commented 1 year ago

Actually I'm with the same issue. I was researching and finding that the span tag (with style = bold ) or even the strong tag itself doesn't wrap break the boundary of the div/p

I tried to replace with divs but I didn't succeed