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:

var n = document.getElementsByTagName("iframe")[0];
    k = document.createElement("a");
k.innerText = "Open Google Slides";

as well as

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;

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!

migrated from superuser.com May 2 at 20:14

This question came from our site for computer enthusiasts and power users.

  • If they have not made them available for download then you cannot and you would be asking us for help circumventing protections, which we will not assist with. – music2myear May 2 at 17:01
  • Welcome to Super User! Please read the tag(s) you included. You are asking an off-topic question. See On Topic. – DavidPostill May 2 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy