PDF converting problem

Topics: Developer Forum, Project Management Forum, User Forum
Apr 20, 2010 at 6:14 PM

Hey guys, its me again!

Thanks for helping me since i started with PHPExcel!

Well now im able to convert my XLS sheet to PDF, but im having some issues now with Columns break.

I uploaded some images for you guys check out:

XLS: http://i26.photobucket.com/albums/c110/nydiow/Riversoft/xls.png

PDF: http://i26.photobucket.com/albums/c110/nydiow/Riversoft/pdf.png

Well the issue, check column 'B5' and 'B7' and compare with PDF the columns are breaking the line, and id like that it doenst happen.

What can i do? And some suggestion about the months?

Thanks again,

Diego Ramos


Apr 20, 2010 at 9:07 PM

I solved the prolem with merge...




but im still open to suggestions about the months... what i can do to fill them on A4 paper?

Apr 20, 2010 at 9:24 PM

The latest SVN code allows you to define paper size and page orientation for the PDF writer, either by setting it using the $objPHPExcel->getActiveSheet()->getPageSetup()->setOrientation() and $objPHPExcel->getActiveSheet()->getPageSetup()->setPaperSize() methods, or setting the values after instantiating the PDF writer and before calling the save method using the PDF writers own setOrientation() and setPaperSize() methods.

That may help.