Skip to content

Instantly share code, notes, and snippets.

@kuwa72
Created December 25, 2016 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuwa72/2f6e07579271baf42b8e177cafb83d89 to your computer and use it in GitHub Desktop.
Save kuwa72/2f6e07579271baf42b8e177cafb83d89 to your computer and use it in GitHub Desktop.
シェル芸勉強会 24回 Q4
<?php
require_once 'vendor/autoload.php';
use \PhpOffice\PhpPresentation\IOFactory;
\PhpOffice\PhpPresentation\Autoloader::register();
$oWriter = IOFactory::createReader('PowerPoint2007');
$prst = $oWriter->load(__DIR__ . '/20141019OSC_LT.pptx');
$slide = $prst->getSlide(6);
$shapes = $slide->getShapeCollection();
foreach ($shapes as $s)
{
echo $s->getPlainText() . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment