Display quiz results in a PDF?
May 08, 2013
By
Jason Dumois
Is it possible to display quiz results in a PDF vs. in a new HTML page?
We have a course where you click a button to view your results and it currently opens in HTML (new browser window), however we need users to save their results so having a PDF display would make the saving much easier than having them have to save an HTML file.
I heard this isn't possible out of the box but perhaps is there a way to customize or code this to work?!
If someone knows how to do this then please let me know ASAP. You will be my new Hero!!!
6 Replies
Jason,
I haven't come across anything like this. It seems like it would definitely need some sort of plug-in. Some of the folks in the community have created some pretty neat solutions to other problems though...so maybe they'll be able to tackle this one too.
Good luck!
Mike
I've been meaning to play with this a bit. Here's a JS library that'll create PDF's client side. With a bit of JavaScript and some finesse with the library, you should be able to create a savable / printable score sheet exclusively from a JavaScript trigger.
http://jspdf.com/
I think I have an idea or two for this...
I will start tinkering (ominous music here)
Thanks everyone for your input here!
Steve - how would this work with Storyline? Also, does JS work on the iPad?
Thanks again!
Jason
Hi Jason,
When the quiz results display as a web page...could you get your users to Print to PDF ?? ..then would they have a PDF version of their results.
I have had a play using the jspdf library. I did a few simple tests and it looks to me as if this will work in the online environment.
Unfortunately my need is to do this locally (save to CD) and in this case it does not seem to work.
My Flash understanding is not good. Is there an explanation somewhere as to how the Launch_story.exe gets around the Flash local permissions problem and maybe why the JS will behave differently in the offline situation?
It is hard without one's usual debug tools but it seems as if the JS is happy with creating the object
var testdoc = new jsPDF();
but it breaks when we try
testdoc.text( 20, 20, 'Hello world!' );
Any guidance would be appreciated.
Regards
Drew
This discussion is closed. You can start a new discussion or contact Articulate Support.