How can I download Google Slides embedded on a website?
I'm having the same issue as this guy: https://stackoverflow.com/questions/42329231/download-google-slide-presentation-published-to-the-web#
I've tried the bookmarking method in that I created 2 bookmarks:
javascript:
var n = document.getElementsByTagName("iframe")[0];
k = document.createElement("a");
k.setAttribute("href",n.getAttribute("src"));
k.setAttribute("target","_blank");
k.setAttribute("style","display:block");
k.innerText = "Open Google Slides";
n.parentElement.insertBefore(k,n);
as well as
javascript:
var atag = "punch-viewer-content",
btag = "goog-flat-menu-button-caption",
ctag = "aria-setsize",
dtag = "aria-posinset",
msvg = document.getElementsByTagName("svg"),
node = document.getElementsByClassName(btag)[0],
view = document.getElementsByClassName(atag)[0],
size = node.getAttribute(ctag);
for(var i = 0, data = ""; i!=size; view.click())
i = node.getAttribute(dtag), data += msvg[0].outerHTML;
document.write(data);
Though while I'm able to save the webpage as pdf, it doesn't directly extract and export the slides as pdf.
Is there someway I can do it?
Thanks so much!