[eluser]Bigil Michael[/eluser]
I have completed pdf export with malayalam font (indian) statically, using mpdf. When I read contents from database only square boxes are printing. Can any one help me ??
Code given below
Code:
$data['description'] = 'ആ സമയത്താണ് തമിഴിലെ സൂപ്പര് ഹിറ്റ് ' ;
$html = $this->load->view("admin/authors/test",$data,TRUE);
$this->load->library('mpdf57/mpdf');
$this->mpdf=new mPDF('utf-8','A4','','',32,25,27,25,16,13);
$this->mpdf->WriteHTML($html,2);
$this->mpdf->Output('mpdf.pdf','I');
It runs successfully
Code:
$row = $this->Authors_model->get_selected($selected_authors);
$data['description'] = entities_to_ascii($row->description);
$html = $this->load->view("admin/authors/test",$data,TRUE);
$this->load->library('mpdf57/mpdf');
$this->mpdf=new mPDF('utf-8','A4','','',32,25,27,25,16,13);
$this->mpdf->WriteHTML($html,2);
$this->mpdf->Output('mpdf.pdf','I');
It prints square boxes
database like this
Can any one help me to solve this issue......