Ejemplo n.º 1
0
 public static function run($dataDir = null)
 {
     # Instantiate Presentation class that represents the presentation file
     $pres = new Presentation($dataDir . 'demo.pptx');
     # Removing the hyperlinks from presentation
     $pres->getHyperlinkQueries()->removeAllHyperlinks();
     # Saving the presentation
     $save_format = new SaveFormat();
     $pres->save($dataDir . "Hyperlinks.pptx", $save_format->Pptx);
     print "Removed hyperlinks successfully, please check the output file." . PHP_EOL;
 }