1

Hi, i have a problem when I want to export tables.....

the tables can have diferents size depends to the user, for exmaple a user create a table with style="width: 871px; height: 806px"
when I create teh pdf the table is so big and out of the leaf.

I do not Know what do..... The user use a text editor "I have in my web ckeditor", and this text al load in my database.... all this is load like HTML....
the user can read all taha he created and he can to export all to pdf

for that reason if the user create a table or anything is like he want....
and sometimes for example with a table so big i cannot square in the pdf

the table is bigger than the leaf.. what can i do?
there is a solution?

And other cuestion...... If I have this:
<table>
<tr> <td> xxxx <td>
</table>

well whit tha there is no problem but if I dont have just xxxx but rather i have a text so long i have a problem... because the text needs more than a just one leaf
ther is a way tha i can divide the text... that if it needs more leaves I dont have an error?

whit the <div> </div> the same problem...

I hope that you can help me
thanks
HTML : off - UBB : on

2

1. if your users are making too big tables, there is no solution... you have to tell them not to use tables with width bigger than the width of the page

2. if xxxx is a single word, there is no solution (like in HTML), but if it is a phrase, you have just to specify the width of the TD or of the div.

Ancien pseudo : lolo

3

HI
thanks for your answer....

For the second problem.... I specify the width of the TD but i have this problem:

ERREUR n°7
Fichier : /home/proyects/public_html/proy1/html2pdf/html2pdf.class.php
Ligne : 4785

le contenu d'une balise TD ne rentre pas sur une seule page


that is my problem...... if all the text that I put between "<td></td>" is so long and needs more than a just one page.... i have this problem....
there is a way for divide the text i do not know...
use the <TD> in two pages... or something like that

thanks ............... gol mur
HTML : off - UBB : on

4

it is not possible to cut a td (or a th or a div) on 2 pages.

you have to divide yout content before
Ancien pseudo : lolo

5

I suggest to see example 5: it is possible to separate a table in different pages! happy

EXAMPLES code:
http://html2pdf.fr/it/example

HTML page:
http://html2pdf.fr/_html2pdf/exemples/exemple05.php?vuehtml

PDF result:
http://html2pdf.fr/_html2pdf/exemples/pdf/exemple05.pdf
--
skype: rastagnolo

6

Hi Chechi123,

I've the exact same problem and its driving me nuts. It works for one table column but for two table columns (<table border='1' style="width:10%"><tr style="width:10%"><td style="width:5%">Alpa</td><td style="width:5%">Tailor</td></tr></table>), it throws below error.

ERREUR n°7
Fichier : /home/proyects/public_html/proy1/html2pdf/html2pdf.class.php
Ligne : 4785

le contenu d'une balise TD ne rentre pas sur une seule page


can you please help me to resolve this issue if you have found a solution already. It would be a great help and would be much appreciated.
Thank you !!