Forum Discussion
Download variables to PDF
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!
- aaronkapala-97bCommunity Member
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?
- AnnaWymanCommunity Member
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!
- aaronkapala-97bCommunity Member
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.
- ChiragHonraoCommunity Member
Hi Aaron,
Could you share the .story file or the output folder to study the output you got?
It will be really helpful.
- aaronkapala-97bCommunity Member
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
- IsaG-1168b83c-9Community Member
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!
- MaryGoemanRealoCommunity Member
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.
- aaronkapala-97bCommunity Member
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.
- MaryGoemanRealoCommunity Member
I just messaged you - let me know if you got it! Thank you!
- aaronkapala-97bCommunity Member
Hi Mary,
I got it, thanks. Will have a look for you.
- PhilMayorSuper Hero
Use PDFMake there are plenty of tutorials and examples on the forum that use this option
- IsaG-1168b83c-9Community Member
Thanks very much for your speedy replies!
- AlexanderLealCommunity Member
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.
- aaronkapala-97bCommunity Member
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
- AlexanderLealCommunity Member
Thank you Aaron. I'll let you know how it goes.