我正在使用mpdf库来创建多个pdf文件(其中包含波斯语单词)。使用php(codeigniter)和mpdf库。我在循环中生成pdfs,但生成的第一个pdf没有任何问题。 firs generated pdf 但在其他人中,人物被隔离为other pdf(s)。我搜索了几次并阅读了mpdf的文档,但无法解决问题。任何解决方案或建议,......
$write_data .= "<!DOCTYPE html>
<html dir='rtl' lang='fa'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title></title></head><body><div>سلام</div></body></html>";
$this->load->library('m_pdf');
for($i=0;$i<3;$i++){
$m=new mPDF('utf-8');
$m=new mPDF('fa','A4','','',32,25,27,25,16,13);
$m->debug = true;
$m->SetDirectionality('rtl');
$m->mirrorMargins = true;
$m->WriteHTML($write_data);
$m->Output($path.'f'.$i.'.pdf', "F");//$path stores the path of the file
}