The task is to create 2 pdf files in a row with different content. I tried this:
$mpdf->WriteHTML($html, 2); $mpdf->Output($file, 'F'); $mpdf->WriteHTML($html1, 2); $mpdf->Output($file1, 'F'); The first one recorded normally, in the second one I shoved the first one and there is no hint of $ html1. I tried to search for file cleaning or did not find closing. Pliz tell me what I do not see.
$mpdf->WriteHTML($html, 2, true, true)haven't you tried this? - Ninazu$mpdf2 = new mPDF();or use$mpdf2 clone $mpdf;if there is a lot of logic before the output goes - Ninazu