I'm using mPDF
to generate the PDF:
$this->load->helper('mpdf');
$this->data['dadosboleto'] = $this->boleto_model->GerarBoletoCEF($id_cliente, $data_inicial, $data_final);
$this->data['view'] = 'boleto/boleto';
$this->load->view('tema/topo',$this->data);
$html = $this->load->view('boleto/boleto_impressao', $this->data, true);
pdf_create($html, 'boleto_'.$id_cliente."_". date('d-m-Y'), TRUE);
The error you make while generating is:
A PHP Error was encountered
Severity: 8192 Message: preg_replace (): The / e modifier is deprecated, use preg_replace_callback instead Filename: mpdf / mpdf.php Line Number: 31592
This error happens only if I have HTML within the View being generated, if I only have a echo "teste"
it works normally.
I'm using the CodeIgniter framework.
Addendum:
Based on our friend Yure's response, it looks like this:
AndthiswouldbehowtoappearcorrectlyinPDF:
Whatcanitbe?Hereistheview: link for being too long, I preferred to put it on PasteBin.