I have a php page that generates a pdf file by using fpdf. How to merge another pdf to the same page by using PDFMerge .
require('fpdf.php');
class PDF extends FPDF {
//some function here
}
some code here..
at the end
include 'PDFMerger.php';
$pdfMerge = new PDFMerger;
$pdf->addPDF('samplepdfs/one.pdf', 'all')
->merge('file', 'samplepdfs/TEST2.pdf');
$pdf->Output('filename.pdf', 'I');
when it executes I want to merge one.pdf
and filename.pdf
. How to get this? thanks in advance