Forum Discussion

JessicaDavis-37's avatar
JessicaDavis-37
Community Member
3 years ago

Javascript - Printing PDF Notes

Hello!

I have a pdf that the learner needs to be able to print. (The learner doesn't add anything to the PDF, none of those variables such as learner name are needed.)

I vaguely remember a PDF can be saved as part of the storyline LMS export. I have tried saving the notes PDF in the story_content folder.

Then in the course the learner can click "Print" and there is JS that allows the pdf that is saved in the storyline content to be pulled and printed. 

Can anyone point me in the right direction of where I may have seen this or JS that you have used in the past? Was this a fever dream? 

Thanks in advance!

  • Hello Jessica!

    Thanks so much for reaching out. 

    In our newest versioning release of Storyline 360 ( Build 3.67.28569.0),  we have made the ability to have learners print individual slides with a single trigger. 

    Here is an article that explains the step-by-step instructions without having to use coding within your project:

    Storyline 360: Print Slide Trigger

    If you are still having trouble getting this PDF to print within your project, I'd recommend opening a support case with our talented Support Engineers. Then we can take a closer look at your file to better assist you. 

    I hope this helps!

    • JessicaDavis-37's avatar
      JessicaDavis-37
      Community Member

      Good afternoon,

       

      Thanks for this information! Can I put a PDF file on a slide to be printed? I was under the impression that wasn't possible. 

  • Hi Jessica,

    It looks like you connected with my teammate, Mick, about this. Please let us know if you have additional questions!

  • ikbelsassi's avatar
    ikbelsassi
    Community Member

    hi,

    i need to add button with JS code to generate PDF file for one slide. i ve tried "var doc = new jsPDF('landscape');" but it does nt work. can any one help me ,