Forum Discussion
RyanLowry
10 years agoCommunity Member
Storyline 2 Example - Generating a PDF Certificate for users who successfully complete a quiz
Hi all,
I've been experimenting with a JavaScript PDF library (pdfmake) to generate PDF certificates client side for learners who have successfully completed a quiz in Storyline 2.
You can see a...
TristanHunt3
8 years agoCommunity Member
I can't share my .story due to the IP but essentially I just stored the answers to the questions in variables %Answer1% through to %Answer10% and in the html file included the questions and pulled in the answer variables.
// Question 1
{
text: 'This is where I put my question',
fontSize: 20,
alignment: 'left',
margin: [0, 0, 0, 10]
},
// Answer 1
{
text: Answer1,
fontSize: 12,
alignment: 'left',
margin: [0, 0, 0, 30]
},