嗨,我正在使用dompdf 0.5.1在php中创建一个pdf文件,我是从html中创建这些文件的,每次我尝试创建一个大文件时,我都有大量的数据,它被卡住了,给我带来错误的是,我可以从html中为大型pdf文件使用任何库,也可以用于小文件和普通文件,谢谢
致命错误: E:\AppServ\www\test\include\cellmap.cls.php:237堆栈跟踪:#0 E:\AppServ\www\test\include\table_cell_frame_reflower.cls.php(66):Cellmap->get_frame_position(Object(Table_Cell_Frame_Decorator)) #1 E:\AppServ\www\test\include\frame_decorator.cls.php(387):Table_Cell_中未在单元格图中找到消息“DOMPDF_Internal_Exception”的未识别异常“DOMPDF_Internal_Exception”E:\AppServ\www\test\include\table_row_frame_reflower.cls.php(70):_Decorator->reflow() #2 E:\AppServ\www\test\include\table_frame_reflower.cls.php(468):帧_Decorator->reflow() #3 E:\AppServ\www\test\include\frame_decorator.cls.php(387):Table_Row_Frame_reflow>reflow() #4 E:\AppServ\www\test\include\table_frame_reflower.cls.php(468):Frame_Decorator->reflow() #5E:\AppServ\www\test\include\frame_decorator.cls.php(387):_ E:\AppServ\www\test\include\block_frame_reflower.cls.php(408):_ E:\AppServ\www\test\include\frame_decorator.cls.php(387):_Frame>reflow() #6 E:\AppServ\www\test\include\block_frame_reflower.cls.php(408):帧_Decorator->reflow() #7 E:\AppServ\www\test\include\frame_decorator.cls.php(387):块_E:\AppServ\www\test\include\frame_decorator.cls.php(387):_Frame>reflow() #8 E:\AppServ\www\test\include\table_cell_frame_reflower.cls.php(115):Frame_Deco in E:\AppServ\www\test\include\cellmap.cls.php在线
发布于 2010-10-20 11:17:19
我会使用Webkit到PDF或PhantomJS进行推荐
发布于 2013-11-28 14:09:17
刚和DOMpdf进行了一些讨论,发现了一些关于这个问题的解决方案,所以我想和大家分享一下。
我的dompdf Frame not found in cellmap错误可以通过编辑includes/cellmap.cls.php并注释掉以下每一个事件来帮助:
throw new DOMPDF_Exception("Frame not found in cellmap");第212、231、257、274行
代以:
return false;这使我能够看到我的mutli页面PDF文档实际上是错误的。我把它缩小到一个跨越多个页面的大图像(当然,用户cms输入!)所以我把奇异的图像换成了相同的,切成两块,所有的都是固定的。
我还读到,这个错误可以链接到div跨越超过一个页面的范围,但在0.6.0 beta 3中发现情况并非如此,因为任何“修复”都没有什么不同,即使我有多个div的跨页。修正建议用'p‘或'span’标记替换所有div。
所以现在DOMpdf正在毫无问题地呈现出CMS生成的页面,希望这能帮助到一些人,
发布于 2016-02-24 11:50:31
几天来,我一直面临着同样的问题,在一张大桌子上,有一排跨度和大跨度,但没有边界崩溃:坍塌(有一个已知的问题与该属性相关)。
通过将以下内容添加到表元素的样式中,解决了这个问题:
table
{
border-collapse:unset;
}希望能帮上忙!
https://stackoverflow.com/questions/3977125
复制相似问题