Forum Discussion
RyanLowry
7 years agoCommunity Member
Storyline 360 - Generating a PDF Certificate using JavaScript
This example demonstrates how to use the pdfmake JavaScript library to generate PDF certificates in the browser using Storyline 360.
This is a followup to my original post found here. The only cha...
RyanLowry
Community Member
You could also include variables in the filename e.g. the learners name.
pdfMake.createPdf(docDefinition).download('Certificate_' + firstName + '_' + lastName + '.pdf');
Resulting filename for a learner called Joe Bloggs would be Certificate_Joe_Boggs.pdf
PhilMayor
4 years agoSuper Hero
I am with Ryan on this one, I always include a variable for the filename and if it relates to someone add their name into the filename.