1

Hi,
i have a problem to use the word-wrap style.
I think that tha styleHTML.class.php not recognized this command.
Now, how can i add the word-wrap command with value break-word for my css style page?
I tried to add a case in the styleHTML.class.php but nothing happened.
Thanks...
Bye bye

2

just specify a width to your parent element wink
Ancien pseudo : lolo

3

perfect!!! thanks...it was a stupid question... sad bye

4

hi,
i want wrap word, but does not work if use a <DIV>, <P> or a TABLE....

This is the html code:

$content='
<page style="font-size: 14px">
<div style="width: 70%;background:#0f0;word-wrap:break-word;">
<p style="word-wrap:break-word;background:#00f;">http://ffddaa/fjdsfs/lkjflkjdfs/lsfkldsfsjs/dfjklsjfdsfsòljfs/ldkfjkldsfjkldsdsj/xòjòlssòlfòldfs/sòljfòldsjdsòldsfòs/òsjfòdsj?gfds=skjdgf</p>
</div>
<table style="border: solid 1px #440000; width: 80%" cellspacing="0"><tr><td style="width: 60%;word-wrap:break-word;backgorund:#0f0;">http://ccss/fjdsfs/lkjflkjdfs/lsfkldsfsjs/dfjklsjfdsfsòljfs/ldkfjkldsfjkldsdsj/xòjòlssòlfòldfs/sòljfòldsjdsòldsfòs/òsjfòdsj?gfds=skjdgf</td></tr></table><br>
</page>';

if you generate the PDF,

$html2pdf = new HTML2PDF('P','A4','it');
$html2pdf->writeHTML($content);
$html2pdf->Output('test.pdf');

the text is not wrap.

Thanks.
Bye bye

5

HTML2PDF does not implement "word-wrap:break-word". you must cut your words manually

Ancien pseudo : lolo

6

ok.
thanks