Problem with table rendering using colspan or rowspan

Phoca PDF - creating PDF documents in Joomla! CMS
Gemini
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2011, 07:25

Problem with table rendering using colspan or rowspan

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with table rendering using colspan or rowspan

Post 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
If you find Phoca extensions useful, please support the project
Gemini
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2011, 07:25

Re: Problem with table rendering using colspan or rowspan

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with table rendering using colspan or rowspan

Post by Jan »

Hi, testing now, without any problems:

Image
If you find Phoca extensions useful, please support the project
Gemini
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2011, 07:25

Re: Problem with table rendering using colspan or rowspan

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with table rendering using colspan or rowspan

Post by Jan »

Hmmm, really not sure why this should be a problem ??? :idea:
If you find Phoca extensions useful, please support the project
Post Reply