2015-01-07 1 views

답변

0

mPDF는 기본 말라 얄 람어 글꼴을 지원합니다. CodeIgniter 코드에 제 3 자 디렉토리에 mpdf 폴더를 포함시킨 후

$html = $this->load->view('masterentries/pdfReport',$data,TRUE); 
include_once APPPATH.'/third_party/mpdf/mpdf.php'; 

     $pdf = new mPDF('ml', 'A4'); 

     $pdf->SetFooter($_SERVER['HTTP_HOST'].'{PAGENO}|'.date(DATE_RFC822)); 
     $pdf->WriteHTML($html); // write the HTML into the PDF 
     $pdf->Output(); 

과 같은 코드를 포함하면 pdf가 포함 된 말라 얄 람이 생성됩니다.