title: perl Win32::OLE ExportAsFixedFormat syntax for powerpoint
body: <p>I have trouble using perl (strawberry) and win32::ole using powerpoint (from office2010)
  to convert ppt(x) to pdf.</p>
  
  <p>I can export to jpgs fine with Export function but the function <a href="http://msdn.microsoft.com/en-us/library/bb231096%28v=office.12%29.aspx" rel="nofollow">ExportAsFixedFormat</a> has a quite obscure syntax and alwawys gives me 
  <code>Win32::OLE(0.1709) error 0x80020011: "Does not support a collection"</code>.</p>
  
  <p>this is a sample of what I am trying</p>
  
  <pre><code>    my $ppoint = Win32::OLE-&gt;new('PowerPoint.Application', 'Quit');
      my $Presentation = $ppoint-&gt;Presentations-&gt;Open("$infile") || die("Una +ble to open document ", Win32::OLE-&gt;LastError()) ; 
      $Presentation-&gt;ExportAsFixedFormat("$outfile", 2, 2, "msoCTrue", "ppPrintHandoutHorizontalFir +st", "ppPrintOutputFourSlideHandouts", "msoFalse", "", "" , "", "Fals +e", "False", "False", "False", "False"); 
  </code></pre>
  
  <p>second parameter <a href="http://msdn.microsoft.com/en-us/library/bb265637.aspx" rel="nofollow">ppFixedFormatTypePDF</a> should be 2 </p>
  
  <p>third param 'ppFixedFormatIntentPrint' should be 2</p>
  
  <p>Can anyone suggest a working example?</p>