vikrambalye / dompdf

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

Complex Multi-Page Table with Rowspans and Colspans Causes an DOMPDF_Internal_Exception Error #335

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a complex table like the attached example, which passes W3C validator.

What is the expected output? What do you see instead?
This table is displayed correctly in the browser, but the PDF is not generated 
at all. The error I received is:

Fatal error: Uncaught exception 'DOMPDF_Internal_Exception' with message 'Frame 
not found in cellmap' in 
C:\xampp\htdocs\test\dompdf\include\cellmap.cls.php:227 Stack trace: #0 
C:\xampp\htdocs\test\dompdf\include\table_cell_renderer.cls.php(80): 
Cellmap->get_spanned_cells(Object(Table_Cell_Frame_Decorator)) #1 
C:\xampp\htdocs\test\dompdf\include\renderer.cls.php(290): 
Table_Cell_Renderer->render(Object(Table_Cell_Frame_Decorator)) #2 
C:\xampp\htdocs\test\dompdf\include\renderer.cls.php(138): 
Renderer->_render_frame('table-cell', Object(Table_Cell_Frame_Decorator)) #3 
C:\xampp\htdocs\test\dompdf\include\renderer.cls.php(196): 
Renderer->render(Object(Table_Cell_Frame_Decorator)) #4 
C:\xampp\htdocs\test\dompdf\include\renderer.cls.php(196): 
Renderer->render(Object(Table_Row_Frame_Decorator)) #5 
C:\xampp\htdocs\test\dompdf\include\renderer.cls.php(196): 
Renderer->render(Object(Table_Frame in 
C:\xampp\htdocs\test\dompdf\include\cellmap.cls.php on line 227

What version of the product are you using? On what operating system?
I'm using dompdf 0.6.0 beta2. The web server is XAMPP (Apache 2.2.14, PHP 
5.3.1) running on Windows 7 Professional 64-bit SP1 on a Dell Precision M6300 
with an Intel Core2 Duo T8300 and 4 GB RAM.

Original issue reported on code.google.com by BlenderS...@gmail.com on 11 Aug 2011 at 5:24

Attachments:

GoogleCodeExporter commented 9 years ago
I should have mentioned this in the original message, but here it is anyway. If 
the table is cut down to one page, it works. See the attached HTML and PDF 
documents.

Original comment by BlenderS...@gmail.com on 11 Aug 2011 at 5:31

Attachments:

GoogleCodeExporter commented 9 years ago
This problem was previously reported in issue 61. There's a patch there. The 
fix should be included in the next release.

Thanks for the report, though. Especially for the sample code

Original comment by eclecticgeek on 11 Aug 2011 at 6:18

GoogleCodeExporter commented 9 years ago

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