This topic is locked

Uncaught error with new DOMPDF version if multiple pages needed

6/14/2018 11:55:08 AM
PHPRunner General questions
R
roeland author

Hi,
with the new DOMPDF version I have errors when a PDF is created over multiple pages:
Fatal error: Uncaught DOMPDF_Exception: Frame not found in cellmap in D:\websites\mywebsite.eu\httpdocs\crmtest\plugins\dompdf\include\cellmap.cls.php:245 Stack trace: #0 D:\websites\mywebsite.eu\httpdocs\crmtest\plugins\dompdf\include\table_cell_renderer.cls.php(50): Cellmap->get_spanned_cells(Object(Table_Cell_Frame_Decorator)) #1 D:\websites\mywebsite.eu\httpdocs\crmtest\plugins\dompdf\include\renderer.cls.php(287): Table_Cell_Renderer->render(Object(Table_Cell_Frame_Decorator)) #2 D:\websites\mywebsite.eu\httpdocs\crmtest\plugins\dompdf\include\renderer.cls.php(107): Renderer->_render_frame('table-cell', Object(Table_Cell_Frame_Decorator)) #3 D:\websites\mywebsite.eu\httpdocs\crmtest\plugins\dompdf\include\renderer.cls.php(190): Renderer->render(Object(Table_Cell_Frame_Decorator)) #4 D:\websites\mywebsite.eu\httpdocs\crmtest\plugins\dompdf\include\renderer.cls.php(190): Renderer->render(Object(Table_Row_Frame_Decorator)) #5 D:\websites\mywebsite.eu\httpdocs\crmtest\plugins\dompdf\include\re in D:\websites\mywebsite.eu\httpdocs\crmtest\plugins\dompdf\include\cellmap.cls.php on line 245
update:

I found out that When I use Phprunner standard settings (reset pages) and use the setting FIT TO PAGE width in PDF settings, the problem does not occur. But with the new Dompdf version the letters are so small that the PDF is unreadable i this setting. Therefore, I changed the setting to: 70% and in that case the PDF looks are good, but works only for 1 page.
Found also this page with the description of the same problem in an old Dompdf version.
Hope someone has a solution!
Thanks!