Page 1 of 2
Table Tips
Posted: 06 Feb 2010, 22:56
by doby
Hi,
I'm finding that the HTML Table do not render at all like the PDF tables.
I saw another post that said that if you use tables "correctly" it will work find. "Correctly" isn't really clear to me. I've generated my table using standard tools, and am getting very different results. Could you give us some hints for what "correctly" means?
Thanks,
doby
Re: Table Tips
Posted: 08 Feb 2010, 01:52
by doby
I looked into what can help with the HTML and PDF divide, and came up with using % in styles instead of pixels. Overall it worked well.
I did find a bug though. I'm certain this table will yeild different results than id should. it appears that HTML interprates the % as % of the table width. Your pdf interprets % as percent of the column width.
<table style="width: 80%;" class="hebaby" border="1">
<tbody>
<tr>
<td style="width: 80%;" bgcolor="#0033cc"><span style="color: #ffffff;">Bidder</span></td>
<td style="width: 20%;" bgcolor="#0033cc"><span style="color: #ffffff;"><span id="tableheader">Amount</span></span></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
Re: Table Tips
Posted: 08 Feb 2010, 18:29
by Jan
Hi, maybe this should be a question on tcpdf framework
Re: Table Tips
Posted: 22 Feb 2010, 18:15
by doby
Hi Jan,
I'm not sure what you mean and where you want this to go.
This is a pretty concrete example, and I'm pretty sure it's a bug.
I hate to see this go to a dead end.
Doby
Re: Table Tips
Posted: 22 Feb 2010, 18:42
by doby
Re: Table Tips
Posted: 22 Feb 2010, 21:35
by Jan
Ok
Re: Table Tips
Posted: 25 Feb 2010, 17:20
by doby
Hi Jan,
I've twice submitted this as a bug to the tcpdf forum, and twice got dissed.
See
http://sourceforge.net/tracker/?func=de ... tid=710532
I've added two files that show the difference in results between the pdf and html (tried and failed -- site will not take them). The top table uses the syntax from the tcpdf .
BTW: I used dreamweaver to generate the html syntax.
It's really a very clear bug.
Maybe you could step in here?
t
Re: Table Tips
Posted: 25 Feb 2010, 17:36
by doby
files are here:
iregatta.net/pdf_problems.zip
t
Re: Table Tips
Posted: 26 Feb 2010, 14:43
by Jan
Hi, the problem of PDF is, it is not easy rendered like html, so there are some limitation. So only we can do is waiting if TCPDF developers will make some new behaviour in this area
Jan
Re: Table Tips
Posted: 26 Feb 2010, 17:15
by doby
Jan,
Thanks for the prompt response. You might notice that I posted the error on the tcpdf forms (see previous posts) and they claimed that phocapdf used and outdated version of tcpdf and it would work if Phoca updated to their latest libraries.
Your thoughts?
Any interest in stepping in on the tcpdf forum?
Tom