Open GoogleCodeExporter opened 9 years ago
It would help more to see the output from pdf_settlement_view.php (i.e. the
actual HTML rendered by dompdf that results in a crash). Using what you have
provided I am unable to reproduce your error (on php 5.3.5).
Original comment by eclecticgeek
on 7 Feb 2012 at 10:45
Here is the html
Original comment by albertoasuero@gmail.com
on 8 Feb 2012 at 4:03
Attachments:
I got your document to work by adding the missing closing </tr> and by removing
half the tables rows (5 pages), with the latest version from the SVN trunk.
Dompdf is memory consuming when dealing with tables, this is something we are
working on.
You could try to split the table in subtables or 50 rows.
Original comment by fabien.menager
on 8 Feb 2012 at 9:13
One way for you to be able to generate more lines is to reduce the DOM inside
of the table, for example, the <strong> element can be avoided, by using a
class for the cells you want to be bold, or by using something like this (if
the cell is always the third in the rows) :
#my_table td:nth-child(3) {
font-weight: bold;
}
Note that this will work in the beta 3 we are planning to release this week or
by using the latest code from the trunk. Generally, the fewer DOM elements
there are, the less memory will be used by DOMPDF.
Original comment by fabien.menager
on 8 Feb 2012 at 9:32
Thank you very much!
I'm going to fix the missing closing <tr/> and optimizing the DOM.
I will test it with the code from the trunk (or the beta 3 if it's available)
and I'll post my result.
Original comment by albertoasuero@gmail.com
on 9 Feb 2012 at 8:38
Original comment by eclecticgeek
on 24 May 2013 at 3:00
Original issue reported on code.google.com by
albertoasuero@gmail.com
on 7 Feb 2012 at 11:21Attachments: