WikiTaskTutorial/Powerpoint

From BITPlan Wiki
Revision as of 08:58, 27 April 2020 by Wf (talk | contribs) (created by WikiTask 2020-04-27T07:58:34Z)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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