Permalink
Browse files

IMPROVED : Samples\Sample02

  • Loading branch information...
1 parent dc61f17 commit 89b66f20dac927f39ccccd443d9cd40d7b5e8fb8 @Progi1984 Progi1984 committed Jun 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Tests/02presentation.php
View
@@ -215,6 +215,10 @@
$objWriter = PHPPowerPoint_IOFactory::createWriter($objPHPPowerPoint, 'PowerPoint2007');
$objWriter->save(str_replace('.php', '.pptx', __FILE__));
+echo date('H:i:s') . " Write to OpenDocumentPresentation format<br />";
+$objWriter = PHPPowerPoint_IOFactory::createWriter($objPHPPowerPoint, 'ODPresentation');
+$objWriter->save(str_replace('.php', '.odp', __FILE__));
+
// Echo memory peak usage
echo date('H:i:s') . " Peak memory usage: " . (memory_get_peak_usage(true) / 1024 / 1024) . " MB\r\n";

0 comments on commit 89b66f2

Please sign in to comment.