public function addAnimation($shapes = ARRAY()){
$animation = new Animation();
$currentSlide = $this->pp->getActiveSlide();
$currentSlide->addAnimation($animation);
foreach($shapes as $s){
$animation->addShape($s);
}
return $animation;
}
$pptReader = IOFactory::createReader('PowerPoint2007');
$oPHPPresentation = $pptReader->load(SECURE_PATH . '/documents/powerpoint/SamplePPTX.pptx');
$pptWriter = IOFactory::createWriter($oPHPPresentation, 'PowerPoint2007');
$pptWriter->save(__DIR__ . '/sample.pptx');