This recipe is eperimental and its API can be changed in the future
pptx
recipe generates office powerpoint presentations based on the uploaded pptx template with handlebars tags filled inside using Powerpoint application.
Main helper used to multiply slides. The helper call should be placed on the slide and the system iterates over provided data and creates extra slide based on item's context.
{{pptxSlides item}}
Create a list with single item using Word and call the pptxList
helper. It will iterate over provided data and create another list item for every entry.
- {{#pptxList people}}{{name}}{{/pptxList }}
{{pptxImage src=myDataURIForImage}}
myDataURIForImage
prop in the input data and you should see the image replaced in the output. See general documentation for office preview in studio here.
{
"template": {
"recipe": "pptx",
"engine": "handlebars",
"pptx": {
"templateAssetShortid": "xxxx"
}
},
"data": {}
}
In case you don't have the office template stored as an asset you can send it directly in the API call.
{
"template": {
"recipe": "pptx",
"engine": "handlebars",
"pptx": {
"templateAsset": {
"content": "base64 encoded word file",
"encoding": "base64"
}
}
},
"data": {}
}