Forum Discussion
JohnCooper-be3c
3 years agoCommunity Member
Creating a pdf file from Storyline running under an LMS
I know there are many excellent examples of how to create a pdf file in Storyline using javascript libraries such as jspdf and I have done this successfully in projects compiled for the web...
......
JohnCooper-be3c
Community Member
Hi Mark
You should be able to use the construct you have given to load the latest version of jsPDF as you suggest.
But a bit of a heads up - some of the examples you will see posted here on heroes pre-date V2.0.0 of JsPDF - (in fact I use jsPDF V1.5.3) - So whereas I would load 'jspdf.debug.js' you, correctly, are loading "jspdf.umd.min.js"
As per the release notes for v2.0.0:
"We renamed the files in dist for consistency: jspdf.debug/min.js
is now jspdf.umd(.min).js
"
I mention this in case anyone else is confused when they look at earlier code examples.
Cheers, John
JohnCooper-be3c
3 years agoCommunity Member
Matt - do you know if the 'jspdf.umd.min.js' has the addimage library code in it?? That was the problem with older versions of 'jspdf.js' as I recall.