Download variables to PDF
Jan 29, 2019
Hello!
I have multiple calculations that I am displaying answers using variables.
I would like the user to be able to print the results, the Windows command that we can put in the player links doesn't work in IE ....and I need this to work on many different computers and browsers.
Is there a way to have a download button that generates a PDF to the learners computers with the results displayed?
I saw this, but it doesn't appear to work in 360
https://community.articulate.com/discussions/articulate-storyline/saving-storyline-variables-to-a-pdf?page=5
And I can't get my variables to pass through using this one
https://community.articulate.com/discussions/articulate-storyline/storyline-2-example-generating-a-pdf-certificate-for-users-who-successfully-complete-a-quiz-html5
Many thanks in advance!
22 Replies
Hi Mary,
Not sure if you've managed to get this sorted or not but we have done something similar where we have the questions and whether they got it right or wrong export to a PDF at the end of the module. I have attached an example. Do you still need some help with this?
Hello! This is awesome! I would love some help with it. My work around was to pass all the answers to variables, then pass the variables to the answers to multiple quizzes, run all the answers through the multiple quizzes (while having a "loading" screen appear) and then export the results to a grid. It works, but a PDF would be much cleaner.
Have you got an example file you can send across to look at and I will try to mock it up, once the basics are in place, you can then just add or amend where needed.
I just messaged you - let me know if you got it! Thank you!
Hi Mary,
I got it, thanks. Will have a look for you.
Hi Aaron,
I'm new to Storyline, and I'm trying to do something similar. How do I get Storyline to export the variables to the PDF?
Thanks!
Hi Beth,
Sorry for the delay, have you had a look at this post?
If you have an example file, I can take a look if you have already started work on it.
Hi Aaron,
Could you share the .story file or the output folder to study the output you got?
It will be really helpful.
Hi Chirag,
I can't share the source file sadly due to the content but if you have a file that you could send I could pull something basic together for you to then look at - if that helps?
Best wishes,
Aaron
Hi Aaron,
Your PDF formatting looks great! I'm looking to create a similar downloadable PDF but with a lengthy list of "answers" that are actually wordy phrases. Throughout the module, users select items from lists using checkboxes, then the final PDF shows the checked items. So do you think that it's possible to list a bunch of Pick Many Survey question Results on separate lines? I've seen in other posts that text entry converted to PDF results plops everything on one line...but is it possible to create one long report to show a series of Results "answers" for checkbox entries displayed on different lines, nicely spaced, as in your example? I'm just starting to investigate the JavaScript possibilities by playing with a certificate template but need more customization. Thanks for any advice you might be able to provide!
Greetings Isa!
I'm not sure Aaron is still subscribed to this discussion. Feel free to use the Contact Me button in their profile to contact them directly!
Use PDFMake there are plenty of tutorials and examples on the forum that use this option
Hi Isa,
I’ve dropped you a message directly.
Thanks very much for your speedy replies!
This post was removed by a moderator
Hi.
I am thinking of creating a learning plan/path based on the learners answers. The sample pdf that Aaron shared reflects the formatting I'm envisioning. Does anyone have a working source they're willing to share? TIA.
This post was removed by the author
Hi there,
Hopefully these files will help you get started. The first file is the source code for the example I shared previously and the second example is something similar except it has page breaks and header/footers which may be of use.
Best wishes,
Aaron
Thank you Aaron. I'll let you know how it goes.
Hi there. I would like the learner to take notes throughout the course, and then have these notes downloaded as a pdf at the end of the course. I am struggling a bit with understanding the javascript part. Does anyone perhaps have a step by step tutorial on how to complete the whole process?
Hi Nadia,
I can send over some information and example file tomorrow for you.
Hi Aaron. Thank you so much I would appreciate it.
Get Outlook for Android
Aaron, this is a long thread so I am trying to make sure I understand it. I have a huge course that has hundreds of variables that I want to be able to export to a PDF at the end for the user to see what they entered. (Mainly text field variables) What example should I look at for creating the Javascript? and then what should I use to create the PDF? I saw someone mention PDFMake but I cannot quite follow how to use that as the site seems to not have a download anymore.
Any help you can offer would be great. Thanks.
Hi Randy,
I’ve dropped you a message.
aaron