hi, i'm new to programming and i'm trying my best. So far i could install PHPExcel and could create a .xls file with content and it's working fine.
What i'm trying to do now is to put some content in a PDF file, with no success, this is the error when i open the file:
Fatal error: Uncaught exception 'PHPExcel_Writer_Exception' with message 'PDF Rendering library has not been defined.' in F:\Development\sv_big\site\application\third_party\PHPExcel\Writer\PDF.php on line <i>56</i></th></tr>
I use Codeigniter, so i copied PHPExcel folder into site/application/third_party/ folder and also copied the file PHPExcel.php in third_party.
Then on site/application/libraries/ i included this file: pdf.php
and this is a snippet of what this file contains:
/** PHPExcel_IOFactory */
$rendererName = PHPExcel_Settings::PDF_RENDERER_TCPDF;
$rendererLibrary = 'tcPDF5.9';
$rendererLibraryPath = dirname(__FILE__).'/PHPExcel/Writer/PDF/' . $rendererLibrary;
the path where IOFactory.php is, is: site/application/third_party/PHPExcel/IOFactory.php
I have the following path for the files i assume are the libraries:
and inside PDF folder we have: Core.php, DomPDF.php, mPDF.php, tcPDF.php
I don't really know where is the error, can anyone please help me?