ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

pdf export with unicode

October 17, 2013 7:46am

Subscribe [1]
  • #1 / Oct 17, 2013 7:46am

    Bigil Michael

    275 posts

    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

    $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

    $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


    ascii values are stored in the database like this

    മല

    Can any one help me to solve this issue…...

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases