Is there a way to convert powerpoint pptx file into Image(PNG) using POWERPOINT JAVASCRIPT API?

Gayathri C 0 Reputation points
2023-11-13T02:32:39.6166667+00:00

I want to fetch a particular slide, convert it into an image from my addin, and send the image to the server.

Is there a method in POWERPOINT JS API to do it?
I can see the getFileAsync method which takes the whole file and uses getSliceAsync to get the data in the file in slices, how to define the slice limit to fetch one slide? also, will it work if I want to extract the slice data, and convert it to an image.

is this possible?

Basically is there a direct method to do it, as we have methods to extract texts?

any method to extract a slide from a ppt and convert it into an image?

Microsoft 365 and Office Development Office JavaScript API
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.