diff --git a/PDFMerger.php b/PDFMerger.php index 90e26eb..ef1a66e 100644 --- a/PDFMerger.php +++ b/PDFMerger.php @@ -83,10 +83,10 @@ public function addPDF($filepath, $pages = 'all') public function merge($outputmode = 'browser', $outputpath = 'newfile.pdf') { if(!isset($this->_files) || !is_array($this->_files)): throw new exception("No PDFs to merge."); endif; - - $fpdi = new TCPDI; - $fpdi->SetPrintHeader(false); - $fpdi->SetPrintFooter(false); + + $fpdi = new \TCPDI; + $fpdi->SetPrintHeader(false); + $fpdi->SetPrintFooter(false); //merger operations foreach($this->_files as $file)