Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->mpdf = new Mpdf();
- $this->mpdf->SetDisplayMode('fullpage');
- $this->mpdf->SetCompression(false);
- $this->mpdf->SetSourceFile(APP . 'Template' . DS . 'Pdf' . DS . 'sample.pdf');
- $tpl = $this->mpdf->ImportPage(1);
- $this->mpdf->AddPage();
- $this->mpdf->useTemplate($tpl);
- $this->mpdf->Output(TMP . 'test.pdf');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement