Difference between revisions of "WikiTaskTutorial/Powerpoint"

From BITPlan Wiki
Jump to navigation Jump to search
(pushed from https://partner.bitplan.com)
 
(created by WikiTask 2020-04-27T07:58:34Z)
 
Line 30: Line 30:
 
== result ==
 
== result ==
 
The powerpoint presentation http://oit.utk.edu/instructional/strategies/toolkit/Anonymous%20Assets/sample%20PowerPoint%20presentation.pptx
 
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]
+
can not be opened due to error No valid entries or contents found, this is not a valid OOXML (Office Open XML) file

Latest revision as of 09:58, 27 April 2020


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