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');
Hey, when trying to run the following code:
require_once 'vendor/autoload.php';
use PhpOffice\PhpPresentation\IOFactory;
use PhpOffice\PhpPresentation\Slide;
use PhpOffice\PhpPresentation\Shape\RichText;
$pptReader = IOFactory::createReader('PowerPoint2007');
$oPHPPresentation = $pptReader->load('resources/Digital Signage.pptx');
$oTree = new PhpPptTree($oPHPPresentation);
echo $oTree->display();
I get an error about:
Fatal error: Uncaught Error: Class 'PhpPptTree' not found in \index.php:18 Stack trace: #0 {main} thrown in \index.php on line 18