我从控制器中获取了以下代码,
...
$this->view->vCount = count($result);
$this->view->Reportlist = $result;
// create view object
$html = new Zend_View();
$html->setScriptPath(APPLICATION_PATH . '/layouts/scripts/');
$html->assign('Reportlist', $this->view->Reportlist);
$html->assign('vCount', $this->view->vCount);
// render view
$bodyText = $html->render('getreport.phtml');
//echo $bodyText; exit;
//error_reporting(E_ALL);
$dompdf = new DOMPDF();
$dompdf->set_paper("a4","portrait");
$dompdf->load_html($bodyText);
$dompdf->set_base_path($_SERVER['DOCUMENT_ROOT']);
$dompdf->render();
$dompdf->stream($report_date.".pdf");
.....
上面的代码使用我的 html 内容生成 pdf。但是表格不在pdf里面。HTML 内容仅呈现 pdf 的一半。我们如何使用 DOMPDF 适应 PDF?