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
Table Tips
-
- Phoca Newbie
- Posts: 9
- Joined: 06 Feb 2010, 22:42
Re: Table Tips
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>
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>
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Table Tips
Hi, maybe this should be a question on tcpdf framework
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 9
- Joined: 06 Feb 2010, 22:42
Re: Table Tips
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
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
-
- Phoca Newbie
- Posts: 9
- Joined: 06 Feb 2010, 22:42
Re: Table Tips
Hi,
Figured out what tcpdf was. I posted here:
https://sourceforge.net/tracker/?func=d ... tid=710532
doby
Figured out what tcpdf was. I posted here:
https://sourceforge.net/tracker/?func=d ... tid=710532
doby
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
- Phoca Newbie
- Posts: 9
- Joined: 06 Feb 2010, 22:42
Re: Table Tips
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
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
-
- Phoca Newbie
- Posts: 9
- Joined: 06 Feb 2010, 22:42
Re: Table Tips
files are here:
iregatta.net/pdf_problems.zip
t
iregatta.net/pdf_problems.zip
t
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Table Tips
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 9
- Joined: 06 Feb 2010, 22:42
Re: Table Tips
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
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