WikiTaskTutorial/Powerpoint

From BITPlan Wiki
Revision as of 09:57, 27 April 2020 by Wf (talk | contribs) (pushed from https://partner.bitplan.com)
(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 org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13]