示例#1
0
 public static function run($dataDir = null)
 {
     # Create an instance of Presentation class
     $pres = new Presentation($dataDir . 'demo.pptx');
     # Get the first slide
     $slide = $pres->getSlides()->get_Item(0);
     $shape = FindShape::find_shape($slide, "Shape1");
     print "Shape: " . $shape . PHP_EOL;
 }
示例#2
0
print "Running Aspose\\Slides\\WorkingWithPresentation\\ConvertingToXps::run()" . PHP_EOL;
ConvertingToXps::run(__DIR__ . '/data/WorkingWithPresentation/ConvertingToXps/');
print "Running Aspose\\Slides\\WorkingWithPresentation\\OdpToPptx::run()" . PHP_EOL;
OdpToPptx::run(__DIR__ . '/data/WorkingWithPresentation/OdpToPptx/');
print "Running Aspose\\Slides\\WorkingWithPresentation\\PptToPptx::run()" . PHP_EOL;
PptToPptx::run(__DIR__ . '/data/WorkingWithPresentation/PptToPptx/');
print "Running Aspose\\Slides\\WorkingWithPresentation\\Properties::run()" . PHP_EOL;
Properties::run(__DIR__ . '/data/WorkingWithPresentation/Properties/');
print "Running Aspose\\Slides\\WorkingWithPresentation\\Zoom::run()" . PHP_EOL;
Zoom::run(__DIR__ . '/data/WorkingWithPresentation/Zoom/');
print "Running Aspose\\Slides\\WorkingWithShapes\\AddingLineShape::run()" . PHP_EOL;
AddingLineShape::run(__DIR__ . '/data/WorkingWithShapes/AddingLineShape/');
print "Running Aspose\\Slides\\WorkingWithShapes\\FillingShapes::run()" . PHP_EOL;
FillingShapes::run(__DIR__ . '/data/WorkingWithShapes/FillingShapes/');
print "Running Aspose\\Slides\\WorkingWithShapes\\FindShape::run()" . PHP_EOL;
FindShape::run(__DIR__ . '/data/WorkingWithShapes/FindShape/');
print "Running Aspose\\Slides\\WorkingWithShapes\\FormatLines::run()" . PHP_EOL;
FormatLines::run(__DIR__ . '/data/WorkingWithShapes/FormatLines/');
print "Running Aspose\\Slides\\WorkingWithShapes\\Frame::run()" . PHP_EOL;
Frame::run(__DIR__ . '/data/WorkingWithShapes/Frame/');
print "Running Aspose\\Slides\\WorkingWithShapes\\RotatingShapes::run()" . PHP_EOL;
RotatingShapes::run(__DIR__ . '/data/WorkingWithShapes/RotatingShapes/');
print "Running Aspose\\Slides\\WorkingWithSlidesInPresentation\\AccessSlides::run()" . PHP_EOL;
AccessSlides::run(__DIR__ . '/data/WorkingWithSlidesInPresentation/AccessSlides/');
print "Running Aspose\\Slides\\WorkingWithSlidesInPresentation\\AddSlides::run()" . PHP_EOL;
AddSlides::run(__DIR__ . '/data/WorkingWithSlidesInPresentation/AddSlides/');
print "Running Aspose\\Slides\\WorkingWithSlidesInPresentation\\Background::run()" . PHP_EOL;
Background::run(__DIR__ . '/data/WorkingWithSlidesInPresentation/Background/');
print "Running Aspose\\Slides\\WorkingWithSlidesInPresentation\\ChangingPosition::run()" . PHP_EOL;
ChangingPosition::run(__DIR__ . '/data/WorkingWithSlidesInPresentation/ChangingPosition/');
print "Running Aspose\\Slides\\WorkingWithSlidesInPresentation\\CloneSlides::run()" . PHP_EOL;