简体   繁体   English

如何使用代码点火器在dompdf中放置分页符

[英]How to put page break in dompdf with code igniter

My code is working when I tried to run it, it goes well. 当我尝试运行它时,我的代码可以正常运行。 It shows the complete records. 它显示了完整的记录。 But when I convert it to dompdf, it does not break and cut some of the records. 但是,当我将其转换为dompdf时,它不会破坏并削减某些记录。 I cannot show you the sample pics because i need at least 10 reputations. 我无法向您展示示例图片,因为我至少需要10个声誉。 Help me. 帮我。

Here is the code 这是代码

//PRINT TO PDF 
$html = $this->output->get_output(); 
//Load Library 
$this->load->library('dompdf_gen'); 
//Convert to PDF 
$pdf = "Billing-" . $data['reference_number']; 
$this->dompdf->load_html($html); 
$this->dompdf->render(); 
$this->dompdf->stream($pdf . ".pdf", array('Attachment' => 0));
try this
//PRINT TO PDF 
$html = $this->output->get_output(); 
//Load Library 
$this->load->library('dompdf_gen'); 
//Convert to PDF 
$pdf = "Billing-" . $data['reference_number']; 
$this->dompdf->load_html($html); 
$this->dompdf->render(); 
$this->dompdf->stream($pdf . ".pdf", array('Attachment' => 0));exit;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM