WikiTaskTutorial/Powerpoint

From BITPlan Wiki
Jump to navigation Jump to search


This is an Example for accessing a Powerpoint pptx document from a WikiTask. The example file is a sample Powerpoint Presentation of the University of Tennessee Knoxville

template

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}}

runtemplate -> WikiTaskTutorial/Powerpoint#result

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