title: Fatal error: Uncaught exception 'com_exception' with message. while converting ppt to jpg
body: <p>When I run blow code:</p>
  
  <pre><code>/*** PPT to Image conversion ***/
  $ppt_file = 'E:\wamp\www\temp/a.pptx';
  $app = new COM("PowerPoint.application") or die("Unable to instantiate PowerPoint");
  $app-&gt;Visible = true;
  $app-&gt;Presentations-&gt;Open($ppt_file); 
  $app-&gt;Presentations[1]-&gt;SaveAs("E:/tmp/outdir",18);
  $app-&gt;Presentations[1]-&gt;Close();
  $app-&gt;Quit();
  $app = null; 
  </code></pre>
  
  <p>It gives me one exception : </p>
  
  <blockquote>
    <p><strong>Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Office PowerPoint 2007<br/><b>Description:</b> PowerPoint could not open the file.' in E:\wamp\www\temp\video_conversion.php:107 Stack trace: #0 E:\wamp\www\temp\video_conversion.php(107): variant->Open('E:\wamp\www\tem...') #1 {main} thrown in E:\wamp\www\temp\video_conversion.php on line 107</strong></p>
  </blockquote>
  
  <p>I am unable to figure out what is the problem. </p>