title: PHPExcel: print page margins and print auto fit seems not working
body: <p>I'm calling these 3 functions one after other in this exact order</p>
  
  <pre><code>public function setPrintFitToWidth()
  {
      $this-&gt;sheet-&gt;getPageSetup()-&gt;setFitToWidth(1);    
  }
  
  public function setPrintArea($cell_area)
  {
      $this-&gt;sheet-&gt;getPageSetup()-&gt;setPrintArea($cell_area); 
  }
  
  public function setPrintMargins($top, $right, $bottom, $left)
  {
      $this-&gt;sheet-&gt;getPageMargins()-&gt;setTop($top);
      $this-&gt;sheet-&gt;getPageMargins()-&gt;setRight($right);
      $this-&gt;sheet-&gt;getPageMargins()-&gt;setLeft($left);
      $this-&gt;sheet-&gt;getPageMargins()-&gt;setBottom($bottom);
  }
  </code></pre>
  
  <p>The problem is that, opening resulting Excel file, I've page margin set to 'custom' but, in fact, set to different values instead of margin I passed to my function. In fact I called with argument <code>(1,0.5,0.5,1)</code> but I got, in the same orders, <code>2, 0.8, 0.8, 2</code>. It's really strange ...</p>
  
  <p>Also: I cannot get working <code>setFittoWidth(1)</code>; I expect to see adapted for all column in one page, but Excel tell me It's setup on adapt sheet on a page.</p>
  
  <p>What am I doing wrong?</p>