I want to be able to add the entire PDF document to the document that I create using mpdf.
I can import one page using the following code:
$mpdf->SetImportUse(); $pagecount = $mpdf->SetSourceFile('testfile.pdf'); $tplId = $mpdf->ImportPage($pagecount, 50, 50, 100, 100); $mpdf->UseTemplate($tplId, '', '', 100, 100); $mpdf->Output();
but is there a way to import all pages, not just the last page?
source share