So, I export the Excel file created using PHPExcel to PDF. My only problem is that the content runs across the width of the page (rather than the length), the content of which disappears. Only a blank page is created where this content should be. I tried to insert a column break with a line similar to this example from the documentation, but only line breaks seem to work with PDF:
$objPHPExcel->getActiveSheet()->setBreak( 'D10' , \PHPExcel_Worksheet::BREAK_COLUMN );
It is worth mentioning that I work from a Symfony2 controller, which means a slash before listing PHPExcel.
My ideal solution is for any additional content to go to a second page, which can be placed next to the first page to show the whole table as it appears in a real Excel document.
source
share