Page 1 of 1

Problem with table rendering using colspan or rowspan

Posted: 13 Oct 2011, 08:42
by Gemini
Hi folks,

first of all I would like to say, that I appreciate very much the work you did with the PhocaPDF component. I was very glad to see, that PhocaPDF was able to render (basic) tables, contrary to the embedded joomla pdf functionality.

Nevertheless I came across several problems when using more than only tr and td elements (here the most importants for me):
1) When using colspan or rowspan, the rendering of the tables misaligns the borders (I can give you a screenshot when you want - I didn't manage to attach a file...).
2) Using width attribute in td element to get better results in displaying the table gives also bad results in rendering.

At least colspan and rowspan are quite basic table elements that are very useful for structuring. Do you plan to support such table elements? Or even better, is this already supported and I'm doing something wrong..?


Best regards
Chris

Re: Problem with table rendering using colspan or rowspan

Posted: 17 Oct 2011, 22:33
by Jan
Hi,

you can paste the screenshots per imagshack e.g.

Phoca PDF uses TCPDF library for the rendering, I have tested the table features and seems it was working OK :idea:

Jan

Re: Problem with table rendering using colspan or rowspan

Posted: 18 Oct 2011, 07:44
by Gemini
Hi Jan,

here is the screenshot: http://img37.imageshack.us/img37/83/coderesult.png.

It is sample code taken from w3schools. What I find out is, that when I remove cellpadding in the rowspan sample, the rendering is okay. Unfortunately the text is so near the borders, therefore I used cellpadding.

Removing cellpadding in the colspan example did'nt change anything. The generated PDF still looks like the one in the screenshot.

Chris

Re: Problem with table rendering using colspan or rowspan

Posted: 19 Oct 2011, 22:58
by Jan
Hi, testing now, without any problems:

Image

Re: Problem with table rendering using colspan or rowspan

Posted: 20 Oct 2011, 08:06
by Gemini
Hi Jan,

when I changed <TR>...</TR> to lowercase <tr>...</tr> the rendering works correctly.
It seems that for some elements PDF rendering is case-relevant :idea:

Chris

Re: Problem with table rendering using colspan or rowspan

Posted: 27 Oct 2011, 20:32
by Jan
Hmmm, really not sure why this should be a problem ??? :idea: