Reputation: 11
I am using PptxGenJS library to create a pptx files with javascript. I want to preview of pptx before saving. How can I handle it?
Upvotes: 1
Views: 1012
Reputation: 21
I am afraid this is not possible. you need to get the created slides somehow into PowerPoint in order to view it, which requires a save and a load.
To really create a preview capability for slides, you would have to write a full slide rendering engine in JavaScript, which is obviously a huge effort.
Maybe your script can save files somewhere in a temporary place, and create simple macro in PowerPoint which enables some sort of preview, after which files can be saved with their final name and file path?
Upvotes: 2