From 8c5ba6920a2db83309ddf0906e46aef3bc35927d Mon Sep 17 00:00:00 2001 From: Adam Hobaugh Date: Wed, 6 Dec 2017 13:47:31 -0500 Subject: [PATCH] Add namespace \ to new TCPDI The new TCPDI line caused a class not found error in my environment without the global namespace \. --- PDFMerger.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)