Not able to locate requested PDF
Here is my function:-
function genpdf()
{
$this->load->library('session');
$this->load->library('PDFMerger');
$a=$_POST['a'];
$b=$_POST['b'];
$pdf = new PDFMerger;
$pdf->addPDF("samplepdfs/$a")
->addPDF("samplepdfs/$b")
->merge('file', 'http://localhost/student/samplepdfs/genpdf.pdf');
}
I need to merge different PDF into one. I am using fpdf & fpdi. I want it to be done with codeigniter. Another solutions(different methods than mentioned above) are also welcome.