D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
urbane.createerp.com
/
mpdf
/
examples
/
Filename :
example42_MPDFI_templatedoc.php
back
Copy
<?php include("../mpdf.php"); $mpdf=new mPDF('','','','',15,15,47,16,9,9); $mpdf->SetImportUse(); $mpdf->SetDocTemplate('sample_logoheader2.pdf',1); // 1|0 to continue after end of document or not - used on matching page numbers //=================================================== $mpdf->AddPage(); $mpdf->WriteHTML('Hallo World'); $mpdf->AddPage(); $mpdf->WriteHTML('Hallo World'); $mpdf->AddPage(); $mpdf->WriteHTML('Hallo World'); //=================================================== $mpdf->RestartDocTemplate(); //=================================================== $mpdf->AddPage(); $mpdf->WriteHTML('Hallo World'); $mpdf->AddPage(); $mpdf->WriteHTML('Hallo World'); $mpdf->AddPage(); $mpdf->WriteHTML('Hallo World'); //=================================================== $mpdf->Output(); exit; ?>