I am trying to use this library to join several PDFs PDFMerger
I have downloaded and added everything to my project, but nevertheless it throws me the error: "Fatal error: Uncaught Error: Class 'PDFMerger' not found in ... on line 32"
Here I add the file:
require'PDFMerger.php';
And here is when I use it:
$pdf = new PDFMerger;
foreach($ficheros as $fichero){
$pdf->addPDF($fichero, 'all');
}
$pdf->merge('browser','result.pdf');
The file "PDFMerger.php" is in the same folder from where I call it