1

Hi...
I have a serious problem with tables....
I time ago I writed in this forum... was about tables......

Now i have other problem whit the tables... My web uses ckeditor .... the user can write anything and save the information in my database....
if the user wants to red his information i create the pdf.....

the problem here is when the user mades tables.... all the infromation is saved in the database.... before to create the pdf I recover the infromation to the user and i send all to the pdf:


i thought tha this happen for the "width" of the table.... when I create teh pdf the tables get out of the page... I say to the user that they have to made the table smaller.. but that doesnt works....
in the pdf the size to the table dont change....

with an example with a table with size : width="80" ... and other with width="800"
is the same dont care if the table is smaller or bigger in the pdf always is the same... I don know why

I have this:

<page format="297x210" backtop="20mm" backbottom="20mm" backleft="10mm" backright="30mm">
<?php echo $text ?>
</page>

and $text has html:

$text ='<table width="300"> ........ </table>'

why the pdf walsay create the table with the same size... is so bigger.. and always the table get out to the page..
thanks
HTML : off - UBB : on

2

you must specify the width of all the elements table, td, th, ...

width="..." it not good : is it px ? mm ? pt ?... it is deprecated in html from a long time... you have to use CSS : style="width: 20mm"

html2pdf is not able to convert a html made by users that don't know HTML, by the use of a wysiwyg with a generated html that is not really valid
Ancien pseudo : lolo