标签: php codeigniter pdf mpdf
生成具有多个数据的pdf,并且数据收缩,从而使用mpdf生成pdf
$html = mb_convert_encoding($print, 'UTF-8', 'UTF-8'); $pdfFilePath = "Balance Sheet Sub Group.pdf"; $this->m_pdf->pdf->WriteHTML($html); $this->m_pdf->pdf->Output($pdfFilePath, "D");