Forum Discussion
Creating a pdf file from Storyline running under an LMS
On a related note, if I want to reference the online version of jsPDF instead of packaging it with the course, how do I do that? Do I add some version of the code below to the story.html file?
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"></script>
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-be3c3 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.