breaking tr elements over multiple pages

1,480 views
Skip to first unread message

art guillamon

unread,
May 25, 2011, 5:19:53 AM5/25/11
to dompdf
Hi there,

Is their any way in dompdf to break a table over numerous pages,

What i mean is that i do not know how many <tr> elements are going to
be echo'd out in the html, and im looking to break the table over
numerous pages, like a report

I also do not know the height of each tr


Any ideas?

Thanks
Art

art guillamon

unread,
May 25, 2011, 6:32:18 AM5/25/11
to dompdf
im getting this error

Uncaught exception 'DOMPDF_Internal_Exception' with message 'Frame not
found in cellmap' in

On May 25, 10:19 am, art guillamon <pur3forly...@googlemail.com>
wrote:

BrianS

unread,
May 26, 2011, 2:52:54 PM5/26/11
to dom...@googlegroups.com
Which version of DOMPDF are you using? There are still a few bugs to be worked out with regard to how tables span pages, even in the 0.6.0 code base. That being said, DOMPDF is able to break a table across pages. What it is currently unable to do is break a row into multiple rows. What this means is that if you have a single table cell that is larger than a page then DOMPDF will not be able to split it up and will die horribly.

If you can post a sample document that's giving you problems we can suggest some possible fixes.

art guillamon

unread,
May 31, 2011, 6:57:23 AM5/31/11
to dompdf
Ok basicaly now i have managed to get it to work to some dagree -
running 0.6.0

The table will now span over two pages but the title of the page gets
rendered on the first page then the rest of the table on the next page

Basicaly i want it to render the first page then brake the bottom
information which will not fit, onto the next page

BrianS

unread,
May 31, 2011, 2:22:01 PM5/31/11
to dom...@googlegroups.com
On Tuesday, May 31, 2011 6:57:23 AM UTC-4, art guillamon wrote:
Ok basicaly now i have managed to get it to work to some dagree -
running 0.6.0

The table will now span over two pages but the title of the page gets
rendered on the first page then the rest of the table on the next page

Basicaly i want it to render the first page then brake the bottom
information which will not fit, onto the next page

This goes back to some of the deficiencies when handling tables. Currently DOMPDF will keep a row together, so if you have a lot of content in a one table cell the entire thing will flow over to the next page, potentially leaving a lot of blank space on the previous page. This is something we're planning to address for 0.6.0 final.
Reply all
Reply to author
Forward
0 new messages