CSS display property : inline-table

572 views
Skip to first unread message

Goldenlocks

unread,
Jun 23, 2009, 4:08:02 PM6/23/09
to dompdf
Hello,

Is the display type "inline-table" supported ?
I thought so, but when I try to parse any code including an inline-
table, I have a strange error... not a server error, but a "Connection
interrupted".

Maybe my server is in cause, but it is strange... I'm working under
Wamp 2.0.
Does anyone have this error too ?

BrianS

unread,
Jun 23, 2009, 11:26:48 PM6/23/09
to dompdf
On Jun 23, 4:08 pm, Goldenlocks <thomasguill...@gmail.com> wrote:
> Is the display type "inline-table" supported ?

It should be.

> I thought so, but when I try to parse any code including an inline-
> table, I have a strange error... not a server error, but a "Connection
> interrupted".
>
> Maybe my server is in cause, but it is strange... I'm working under
> Wamp 2.0.
> Does anyone have this error too ?

Do you see any errors in your PHP error.log? What about the apache
error.log? It sounds like possibly the apache child process is dying,
which would interrupt your connection. As far as I can tell this only
happens on Windows. The evidence would be in the apache error.log.
Look for an entry similar to "child process exited with status
3221225477."
-b

Goldenlocks

unread,
Jun 25, 2009, 8:39:16 AM6/25/09
to dompdf
In Apache error.log :
> [Thu Jun 25 08:31:07 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting.

But no errors in PHP error.log.

OK, I have an evidence, but this is not very helpful :) I will try to
trace the error.

BrianS

unread,
Jun 25, 2009, 9:50:20 AM6/25/09
to dompdf
On Jun 25, 8:39 am, Goldenlocks <thomasguill...@gmail.com> wrote:
> In Apache error.log :
>
> > [Thu Jun 25 08:31:07 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting.

The cause of this particular error can be difficult to pinpoint. A
quick search of the web will reveal all kinds of theories. I myself
have been able to reproduce it using DOMPDF with PHP/Apache on
Windows, but the only solution I have found was to modify the HTML. I
haven't had enough time to attempt a debug to find out what part of
DOMPDF could be the cause.

If you discover anything in particular we'd love to hear about it.
-b

Goldenlocks

unread,
Jun 25, 2009, 12:23:37 PM6/25/09
to dompdf
So, I have made some tests...

As far as I have been able to go, the problem is located in
Cellmap::add_frame, at the line 467 ( call to get_min_max_width() )

I'm not sure, but the problem could be an infinite recursive call...
Hum, not exactly recursive, because there is 2 functions :D
I can't identify precisely the parent class of get_min_max_width(),
but I think it's Table_Frame_Reflower. And
Table_Frame_Reflower::get_min_max_width() calls Cellmap::add_frame...

Any idea ?

BrianS

unread,
Jun 25, 2009, 1:20:11 PM6/25/09
to dompdf
On Jun 25, 12:23 pm, Goldenlocks <thomasguill...@gmail.com> wrote:
> I'm not sure, but the problem could be an infinite recursive call...
> Hum, not exactly recursive, because there is 2 functions :D

It could be that two functions that are stuck in a loop calling each
other. I think it's worth looking into this more. I was able to create
a page that causes the same behavior and I'm running into the problem
in the upcoming release as well.

> As far as I have been able to go, the problem is located in
> Cellmap::add_frame, at the line 467 ( call to get_min_max_width() )
>
> I can't identify precisely the parent class of get_min_max_width(),
> but I think it's Table_Frame_Reflower. And
> Table_Frame_Reflower::get_min_max_width() calls Cellmap::add_frame...

This will hopefully get us started. Between this and how DOMPDF on
linux behaves (apache does not crash, but still errors out) maybe
we'll be able to track down the issue.

Unfortunately, I don't really have any ideas on how to work around at
this time.
-b

Goldenlocks

unread,
Jun 25, 2009, 2:03:09 PM6/25/09
to dompdf
Actually, I've the feeling that the inline-table case was omitted in
this part of code (the function add_frame...) :
The first part (l. 353-390) is for table, table-row, and table-row-
group.
The second part (l. 392-...) seems to be for table cells (it begins
with the comments "Determine where this cell is going")

As I am saying, no place for inline-table... BUT I've discovered the
code today, my opinion is not very sure...

I need the "inline-table" feature quickly, so I'll continue to work on
that. I'll post here if I have news.

Goldenlocks

unread,
Jun 25, 2009, 2:23:03 PM6/25/09
to dompdf
And the solution is... :D

File: cellmap.cls.php
Line: 353

In the test
if ( $display == "table-row" ||
$display == "table" || ...

add
$display == "inline-table" ||

Very simple solution but I had to try many times before seeing my PDF
was cached, and so not regenerated :D
Thanks for help.

BrianS

unread,
Jun 25, 2009, 9:13:51 PM6/25/09
to dompdf
Wish I could have been of more help, but the extra work you put into
this one will help many other people I'm sure. Great work!

ali nasir

unread,
Oct 24, 2014, 2:27:36 AM10/24/14
to dom...@googlegroups.com
Hello Folks:
My apache server is crashing if i use inline css in my table and td.i have got 22 column in my report when i generate pdf it goes out from pdf.
Reply all
Reply to author
Forward
0 new messages