Jeckky / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

large table breaks rendering #433

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Having a single page with this style set
@page :first {
    margin-top:0.15in;
    margin-bottom: 0.5in;
    margin-left: 0.25in;
    margin-right: 0.25in;
}

And having the html as close to a second page as possible.

What is the expected output? What do you see instead?
Expected: A pdf. 
Instead: Timeout.

What version of dompdf are you using? What version of PHP? On what
operating system?
Dompdf 0.6.0 beta 3
PHP 5.2
Centos 5.7

The html inside the html files is not my handy work.

I moved a site from a server still running php4, and the pdf generator was 
lacking and not supported. That's where dompdf came in.

Error.html will reproduce the issue at hand.
It's just the margin-bottom for @page :first
Fixed the issue by setting margin-bottom: 0in;

Just seem odd. Thought I'd share.

Original issue reported on code.google.com by abradf...@highforge.com on 23 Feb 2012 at 9:22

Attachments:

GoogleCodeExporter commented 9 years ago
Just seemed* odd.

Original comment by abradf...@highforge.com on 23 Feb 2012 at 9:23

GoogleCodeExporter commented 9 years ago
The main problem would be the outer table. There's a known bug that results 
from a table cell being larger than a page. Reference issue 91.

However, the fix for your situation appears to be fairly straightforward. 
Remove the outer table (delete lines 193 & 457 from the attached file). 
Honestly I can't really see a reason for it to be there and removing that 
should work around your problem.
http://eclecticgeek.com/dompdf/debug.php?identifier=c26b98c2704563a3851b72c534d1
b3e5

Original comment by eclecticgeek on 24 Feb 2012 at 3:12

GoogleCodeExporter commented 9 years ago
I put the outer table in the code because of the attached error-2.html.
Line 321 to 345 could have 15 of those tables being generated at one time.
Now, knowing about issue 91 no-error-2.html is my solution. 
Thank you for your help.

-_-' Tables.

Original comment by abradf...@highforge.com on 24 Feb 2012 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago
Glad you were able to find a way around the problem.

Original comment by eclecticgeek on 24 Feb 2012 at 5:21

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16