Return to Snippet

Revision: 26713
at May 7, 2010 13:08 by cschlens


Initial Code
$powerpnt = new COM("powerpoint.application") or die("Unable to instantiate Powerpoint");

$presentation = $powerpnt->Presentations->Open(realpath($file), false, false, false) or die("Unable to open presentation");

foreach($presentation->Slides as $slide)

{

    $slideName = "Slide_" . $slide->SlideNumber;

    $exportFolder = realpath($uploadsFolder);

    $slide->Export($exportFolder."\\".$slideName.".jpg", "jpg", "600", "400");

}

$powerpnt->quit();

Initial URL

                                

Initial Description

                                

Initial Title
Convert PPT to jpeg

Initial Tags
file

Initial Language
PHP