使用DOMPDF创建PDF时出错

时间:2015-04-15 10:57:51

标签: javascript php jquery pdf dompdf

我正在使用DOMPDF version (0.6 beta)。我收到以下错误:

Fatal error: Call to a member function append_child() on null in C:\xampp\htdocs\practice\application\helpers\dompdf\include\frame_tree.cls.php on line 220

这是我的代码段:

$this->load->helper(array('dompdf', 'file'));
$quoteId = $this->uri->segment('4');
$filename ='ship-'.uniqid().'.pdf';
$data = pdf_create($html, '', false);

$html = file_get_contents(BASE_URL.'index.php/admin/quotes/createQuotePDF/'.$quoteId);

我在过去4个小时内遇到此错误。 也无法从谷歌获得太多。任何帮助将不胜感激

1 个答案:

答案 0 :(得分:0)

我意识到自己犯了什么错误。我包含了太多无法处理的样式。然后用最小的内联样式实现它就像一个魅力

相关问题