This is an Example for accessing a Powerpoint <img src='http://img3.wikia.nocookie.net/__cb20120509173954/logopedia/images/thumb/0/04/PowerPoint.png/80px-PowerPoint.png'/> pptx document from a WikiTask. The example file is a sample Powerpoint Presentation of the University of Tennessee Knoxville
This template includes Office#Powerpoint
@include(wiki.Office.Powerpoint)
The powerpoint presentation @(wikiTask.getInput())
@if(powerpoint.error) {
can not be opened due to error @(powerpoint.error.getMessage())
} else {contains the following slides:
@("{|") class="wikitable sortable"
! #
! title
|-
@{ int page=0; }
@for (XSLFSlide slide:powerpoint.slides) {
| @(++page)
| @(slide.getTitle())
|-
}
@("|}")
}
{{wikitask|cmd=runtemplate|input=http://oit.utk.edu/instructional/strategies/toolkit/Anonymous%20Assets/sample%20PowerPoint%20presentation.pptx|engine=Rythm|template={{FULLPAGENAMEE}}#template|targetpage={{FULLPAGENAMEE}}#result}}
<img src="https://wiki.bitplan.com/font-awesome/svg/play.svg" width="48" height="48" title="play">runtemplate -> WikiTaskTutorial/Powerpoint#result
The powerpoint presentation http://oit.utk.edu/instructional/strategies/toolkit/Anonymous%20Assets/sample%20PowerPoint%20presentation.pptx can not be opened due to error No valid entries or contents found, this is not a valid OOXML (Office Open XML) file