save codeigniter view file as a pdf file using mpdf
Try this code...
$html = $this->load->view('agents/invoices/invoice_pdf',$data,true);
It might be the problem of mbstring extension not available on your server.Enable that extension and try out.