$pdf->AddPage();$pdf->setSourceFile('../webroot/files/templates/'.$templatefile);$pdf->_tplIdx = $pdf->importPage(1);$pdf->useTemplate($pdf->_tplIdx);