Page 1 of 1

problem in table width in html2pdf

Posted: Wed Jul 21, 2010 3:55 am
by learnerabn
Hi all,

I am using html2pdf class file to convert html output to pdf file.
my problem is the table width is changing according to the rows from the db.

i dont know why
can any one trace the problem here?

thanks in advance.

Re: problem in table width in html2pdf

Posted: Wed Jul 21, 2010 12:34 pm
by Jade
You need to set a fixed width on your table -- but even then that won't 100% guarantee the width. If you have a long string of text with no spaces to break it apart it will force the table cell to be larger even with your fixed width.

Re: problem in table width in html2pdf

Posted: Thu Jul 22, 2010 6:54 am
by learnerabn
Thanks for your reply.

No other ways to go?

Re: problem in table width in html2pdf

Posted: Thu Jul 22, 2010 8:10 am
by Jade
Sure... don't write so many rows per line, or force your data to have a space (or truncate) after a certain number of characters.