Try to search your question here, if you can't find : Ask Any Question Now ?

mpdf import all pages from another pdf document

HomeCategory: stackoverflowmpdf import all pages from another pdf document
Avatargaurav asked 5 months ago

I want to be able to append an entire pdf document in the document I am creating with 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 rather than just the last page?

1 Answers
Best Answer
AvatarFernando answered 5 months ago
Your Answer

17 + 17 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com