Forum Discussion

DomSweeten's avatar
DomSweeten
Community Member
12 years ago

Storyline - Javascript save image/screenshot

Hi,

Newish to Storyline and getting to grips with the features...

I've found the window.print() script that prints a slide... cool feature

I'd like to be able to take a screenshot of the slide so the user can save it as png or jpeg in order they can upload it to a Mahara website later.

Is there a Javascript command that can do anything that may help?

  • Hi Dom,

    Welcome to the Heroes community! I don't know if I've seen a screenshot command in Javascript, but there are a number of community experts well versed in Java, so I hope that they'll be able to assist you. If you need anything else, please let us know! 

  • MandyGalley's avatar
    MandyGalley
    Community Member

    Did anyone find an answer to this?

    I wonder if Articulate have plans to add features to allow project users to print or save slides? Exporting to pdf would be useful too. 

  • Hi Nikki,

    We have the print results button still as a part of a Results slide but there isn't a function built in to print any slide. The majority of folks continue to use the Javascript element to print an individual slide. 

    • TramTruong's avatar
      TramTruong
      Community Member

      Hi Ashley, can you advise me to where I can find the script to print an individual slide? Thanks!

  • Hi Tram! There are lots of folks in this community who are more Java-savvy than me, but I did want to point you to these Javascript Best Practices and Examples. One of the examples listed there is the script for Print current slide (HTML5 only):

    window.print();

    See how Owen Holt uses this simple code to creatively print any slide from a button on the course player.

    The simple code above prints the current slide and the Storyline player. If you want to print the slide content only, not the Storyline player, see this JavaScript code from Brian Batt.

    I hope that helps!

  • RouaAL's avatar
    RouaAL
    Community Member

    Hi everyone, just pointing out the "save" javascript question. Still didn't figure it out.

    Has anyone found a way to allow learners to take a snapshot/save/download the current slide option?

    Thanks a lot

  • Bumping the thread, because that's what I do. Seriously, though. I've implemented the JS window.print(); function on a button. I'd really like a save to PDF or save to image or something similar. Anyone got a solution for that? Thanks!