1

I would like to make a master Powerpoint or .PPTX by copying slides from multiple Powerpoint (PPT) presentations. I would like to give PHPPowerPoint a list of file locations as input and let it create the master PPT or PPTX. Can PHPPowerPoint do this?

Thanks

Rachel Gallen
  • 27,943
  • 21
  • 72
  • 81
Jim
  • 133
  • 4

1 Answers1

1

Release 0.3.0 (Sep 22, 2014) includes the the ability to read PowerPoint97 files so it seems like you would be able to do this.

It seems like you can use code like this:

$oReaderPPT = \PhpOffice\PhpPowerpoint\IOFactory::createReader('PowerPoint97');
$oReaderPPT->load('/path/to/my.ppt');

From there, you may be able to use a combination of ->getSlideCount, ->getSlide, and ->addSlide.

Grokify
  • 15,092
  • 6
  • 60
  • 81