I'd like to download the current page open in google slides as pdf. Google Slides allows in their own UI to download the whole presentation as PDF but I am interested in downloading slides in the presentation one by one.
Right now I am able to select current page with,
export const getCurrentPage = () => {
return SlidesApp.getActivePresentation()
.getSelection()
.getCurrentPage();
};
This function returns a Page Class.
The problem is I don't know how to cast this 'Page Class' to a PDF and download it. I've checked the available methods but couldn’t found anything useful yet. Any suggestions?