Created
December 25, 2016 09:15
-
-
Save kuwa72/2f6e07579271baf42b8e177cafb83d89 to your computer and use it in GitHub Desktop.
シェル芸勉強会 24回 Q4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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