2011-11-21 100 views
0

我有一個腳本生成多個報告,其中每個報告都使用DOMPDF轉換爲pdf。這些報告的大小和內容類型各不相同,但通常會混合使用圖像,表格和風格化文本。從DOMPDF獲取錯誤「foo」

在我的最新報告,我是想轉換,我得到了下面的錯誤:

Exception information: 
Message: foo 
Stack trace: 
#0 library/dompdf/include/table_row_frame_reflower.cls.php(83): Cellmap->get_frame_height(Object(Table_Row_Frame_Decorator)) 
#1 library/dompdf/include/frame_decorator.cls.php(477): Table_Row_Frame_Reflower->reflow(NULL) 
#2 library/dompdf/include/table_frame_reflower.cls.php(481): Frame_Decorator->reflow() 
#3 library/dompdf/include/frame_decorator.cls.php(477): Table_Frame_Reflower->reflow(Object(Block_Frame_Decorator)) 
#4 library/dompdf/include/block_frame_reflower.cls.php(706): Frame_Decorator->reflow(Object(Block_Frame_Decorator)) 
#5 library/dompdf/include/frame_decorator.cls.php(477): Block_Frame_Reflower->reflow(Object(Block_Frame_Decorator)) 
#6 library/dompdf/include/inline_frame_reflower.cls.php(96): Frame_Decorator->reflow(Object(Block_Frame_Decorator)) 
#7 library/dompdf/include/frame_decorator.cls.php(477): Inline_Frame_Reflower->reflow(Object(Block_Frame_Decorator)) 
#8 library/dompdf/include/block_frame_reflower.cls.php(706): Frame_Decorator->reflow(Object(Block_Frame_Decorator)) 
#9 library/dompdf/include/frame_decorator.cls.php(477): Block_Frame_Reflower->reflow(Object(Block_Frame_Decorator)) 
#10 library/dompdf/include/block_frame_reflower.cls.php(706): Frame_Decorator->reflow(Object(Block_Frame_Decorator)) 
#11 library/dompdf/include/frame_decorator.cls.php(477): Block_Frame_Reflower->reflow(Object(Block_Frame_Decorator)) 
#12 library/dompdf/include/block_frame_reflower.cls.php(706): Frame_Decorator->reflow(Object(Block_Frame_Decorator)) 
#13 library/dompdf/include/frame_decorator.cls.php(477): Block_Frame_Reflower->reflow(NULL) 
#14 library/dompdf/include/page_frame_reflower.cls.php(169): Frame_Decorator->reflow() 
#15 library/dompdf/include/frame_decorator.cls.php(477): Page_Frame_Reflower->reflow(NULL) 
#16 library/dompdf/include/dompdf.cls.php(680): Frame_Decorator->reflow() 
#17 application/controllers/NetworthController.php(332): DOMPDF->render() 
#18 library/ZendFramework-1.11.0/ZendFramework-1.11.0/library/Zend/Controller/Action.php(513): NetworthController->reportAction() 
#19 library/ZendFramework-1.11.0/ZendFramework-1.11.0/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('reportAction') 
#20 library/ZendFramework-1.11.0/ZendFramework-1.11.0/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) 
#21 library/ZendFramework-1.11.0/ZendFramework-1.11.0/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch() 
#22 library/ZendFramework-1.11.0/ZendFramework-1.11.0/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() 
#23 index.php(150): Zend_Application->run() 
#24 {main} 

我跑了HTML輸入到DOMPDF通過驗證,並沒有任何錯誤或警告。該報告確實包含了多個表格,但是沒有一個表格會被強制拆分成多個頁面(最長的表格大約是一頁的三分之一)。除了無效的HTML之外,我不確定是什麼原因造成這種情況,並且搜索此錯誤僅表明它是潛在的原因。

對此提出建議?

回答