PDF and excel columns more wider than it should be

Topics: Developer Forum, Project Management Forum, User Forum
Apr 15, 2009 at 7:33 AM
Hello. It's me again ;)

Well, I have a problem with generated PDF.. I set column widths with the code below.
    foreach ($tableProperties['width'] as $param => $value)
        $objPHPExcel->getActiveSheet()->getColumnDimension($param)->setWidth(($value+0.83));        //+0.83 == offset

It displays OK in Excel, but in PDF it displays very wider than it should be. I can send xls and pdf files on email. I just don't want to post screenshots with it's content on web.

Is it a known problem? Can you help me? It seems, that PDF's "width" is different from Excel one. It's about 2 times wider.
Apr 16, 2009 at 8:54 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.