Forum Discussion
Storyline 2 Example - Generating a PDF Certificate for users who successfully complete a quiz
Hi Nancy and Tristan,
I'm not familiar with PDFMake, but would love to try and help! Can you tell me a bit more about what's happening (or you'd expect to be happening)?
If you can share a copy of it with our Support engineers we're always happy to take a look! Upload a copy of your course here and a link to the Review hosted version here.
- NancyWoinoski8 years agoSuper Hero
Hi Ashley, PDFMake is a JavaScript library that enables you to create downloadable PDF files in your browser. When used with Storyline it is a great way to capture user input, pass it to an html doc which is then converted to a downloadable pdf .
To do this you have to create an html doc that gets the player vars from Storyline, formats the content and references the js functions that create the pdf. You then insert the folder containing the html doc and the JS funtions as a webObject into Storyline.
There is a trigger in Storyline to run a JS script which runs the JS functions to create the PDF and download it to the user's client.
So to make a long story short, when you execute the trigger in the Review hosted version nothing happens. When you execute the trigger in SCORM Cloud, Articulate-online and from a website, the pdf is downloaded as expected.