officegen NodeRED Node
Wrapper officegen
- https://www.npmjs.com/package/officegen
- Currently, only officegen's pptx generation is supported.
- plan to support other docs in the future.
Install
npm install node-red-contrib-officegen
Usage
Expects a msg.slides and msg.filename
parameter example
msg = {};msgfilename = 'test.pptx';msgslides = ;msgslides0 ={};msgslides0title = 'test ppt';msgslides0desc = 'test ppt desc';msgslides0name = 'test name';// msg.slides[0].back = '000000';msgslides0adds =;msgslides0adds0 = {};msgslides0adds0addType = 'text';msgslides0adds0text = 'text message';msgslides0adds0textAttr = y: 66 x: 'c' cx: '50%' cy: '1inch' font_size: 48 color: '0000ff' bodyProp: normAutofit: 92500 ; return msg;
response
- result msg.payload :
completed
or error message
sample flow
Flows can be imported and exported from the editor using their JSON format, making it very easy to share flows with others.
- Importing flows - pasting in the flow JSON directly
- Menu - Import - Clipboard - Ctrl+v - Import button