Split cells content across multiple pages when rendering pdf

871 views
Skip to first unread message

Agra72

unread,
Jan 24, 2011, 6:25:30 AM1/24/11
to dompdf
Hi to all,

I'm having troubles with rendering tables when the last row on page
contain multiple lanes of text, in fact, in the rendered pdf, the
entire table row will be on the next page also if the text on the
first page is about the 50% of the page height.
I would like to split the row across multiple pages inserting
automatically a break if the text will exceed the page lenght.
Any suggestion?
Thanks

BrianS

unread,
Jan 25, 2011, 1:56:47 PM1/25/11
to dompdf
Unfortunately dompdf still requires a bit more work where tables are
concerned, and this is one of the problems. Currently there is no code
to handle splitting of a table cell/row so that it can be flowed
across pages. This is the source of one of the more serious bugs (an
infinite loop processing table cells larger than a single page).

The issue is high on our list, but I can't say right now when the
functionality will be implemented.

Alessandro Grassoni

unread,
Jan 25, 2011, 2:17:19 PM1/25/11
to dom...@googlegroups.com
So i guess the problem can be solved only by working on the asp page which generate the table...
writing a function which split the text on multiple table rows by counting, for example the number of characters of a single row...


 
2011/1/25 BrianS <eclect...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "dompdf" group.
To post to this group, send email to dom...@googlegroups.com.
To unsubscribe from this group, send email to dompdf+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dompdf?hl=en.


BrianS

unread,
Jan 25, 2011, 2:35:47 PM1/25/11
to dompdf
I think for now if you want to tackle the PDF generation with dompdf
you'll have to do something like that.


On Jan 25, 2:17 pm, Alessandro Grassoni
<alessandro.grass...@gmail.com> wrote:
> So i guess the problem can be solved only by working on the asp page which
> generate the table...
> writing a function which split the text on multiple table rows by counting,
> for example the number of characters of a single row...
>
> 2011/1/25 BrianS <eclecticg...@gmail.com>
>
> > Unfortunately dompdf still requires a bit more work where tables are
> > concerned, and this is one of the problems. Currently there is no code
> > to handle splitting of a table cell/row so that it can be flowed
> > across pages. This is the source of one of the more serious bugs (an
> > infinite loop processing table cells larger than a single page).
>
> > The issue is high on our list, but I can't say right now when the
> > functionality will be implemented.
>
> > On Jan 24, 6:25 am, Agra72 <alessandro.grass...@gmail.com> wrote:
> > > Hi to all,
>
> > > I'm having troubles with rendering tables when the last row on page
> > > contain multiple lanes of text, in fact, in the rendered pdf, the
> > > entire table row will be on the next page also if the text on the
> > > first page is about the 50% of the page height.
> > > I would like to split the row across multiple pages inserting
> > > automatically a break if the text will exceed the page lenght.
> > > Any suggestion?
> > > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "dompdf" group.
> > To post to this group, send email to dom...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > dompdf+un...@googlegroups.com<dompdf%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages