代码用于生成条形码
Zend_Barcode::render('code128', 'image', array('text'=> $code), array());
条形码生成成功。
用于生成BARCODE的HTML代码
site_url().'/employees_card/barcode/'.$employee_detail['nic']
PDF代码
$html = $this->load->view('employees/view_backcard', $data,TRUE);
$dompdf->loadHtml($html);
// (Optional) Setup the paper size and orientation
$dompdf->setPaper('Legal', 'Landscape');
// Render the HTML as PDF
$dompdf->render();
// Output the generated PDF (1 = download and 0 = preview)
$dompdf->stream("codex",array("Attachment"=>1));
然后我想通过DomPdf打印它,代码的HTML预览是https://prnt.sc/jrrzdr
但是最终PDF没有加载条形码,请问任何解决方案?