i\'ve been searching in the official docs but i can\'t seem to put all the things together in my mind (i\'m new to programming). I managed to use the excel library and it\'s
Download tcpdf library from https://sourceforge.net/projects/tcpdf/files/ and extract to your porject folder (i have extracted in to xampp\htdocs\export\tcpdf)
require_once 'PHPExcel/Classes/PHPExcel/IOFactory.php';
require_once 'PHPExcel/Classes/PHPExcel.php';
// Create new PHPExcel object
$objPHPExcel = new PHPExcel();
$rendererName = PHPExcel_Settings::PDF_RENDERER_TCPDF;
// tcpdf folder path
$rendererLibraryPath = dirname(__FILE__).'/tcpdf';
I found a simple snippet here http://wiki.workassis.com/download-as-pdf-using-phpexcel-and-tcpdf/ phpexcel with tcpdf library