I came across with same problem of mine but i tried solved it with the given solution in every topic but it seems i cant solve it. Saying "Class 'setasign\Fpdi\FpdfTpl' not found"
I am new in using this FPDF and FPDI, please help me on solving my problem
<?php
require_once('fpdf.php');
require_once('fpdi/fpdi.php');
require_once('fpdi/autoload.php');
// initiate FPDI
$pdf = new FPDI();
// add a page
$pdf->AddPage();
// set the source file
$pdf->setSourceFile("IBA.pdf");
// import page 1
$tplIdx = $pdf->importPage(1);
// use the imported page and place it at point 10,10 with a width of 100 mm
$pdf->useTemplate($tplIdx, 10, 10, 100);
// now write some text above the imported page
$pdf->SetFont('Helvetica');
$pdf->SetTextColor(255, 0, 0);
$pdf->SetXY(30, 30);
$pdf->Write(0, 'This is just a simple text');
$pdf->Output();
i Just wanted to put watermark on my imported pdf file