Getting Values to a downloadable PDF
Feb 20, 2020
By
Joanna L
Hi everyone,
I am trying to generate a PDF with Storyline via pdfmake using this tutorial by Ryan L. I am using the story file from this example as a base, but I am having a hard time understanding how it all works because there is no description of how to make it. For some reason, even if I delete the javascript and HTML files, the certificate seems to generate, which doesn't make sense. I am trying to design the PDF, but it seems as though I can only do this in the HTML coding for "certificate.html", but when I update the HTML it isn't reflected in the certificate. Can anyone help me?
6 Replies
Hi Joanna - I feel your pain - have you had any luck?
I had a solution that worked using a dynamic PDF but found that it would only work in Internet Explorer.
I havent tried this yet, but should work in principle, as I have been the procedure for something else:
Send the variables to a Google Sheet and hold them there. There is an add on for the google suite called Document Studio, there is a free working version available but the full version isnt too expensive. Using this add on you can create a template certificate in the Google Slides app that will process each entry from the sheet into an individual user certificate which can be stored as a PDF on Google Drive, or emailed directly to the user.
Hoping you can give me a lesson!
https://www.darren-heath.co.uk/storyline/certificate/story.html
There is a very crude demo here using Google sheets. Enter your name and email address and after submitting your details to the google sheet a certificate is generated and emailed.
This is a useful guide on sending variables to Google for the first part, and I'll dig out the tutorial video for creating a Google slide template to create certificate from the add on developer.
https://community.articulate.com/discussions/articulate-storyline/exporting-variables-into-a-google-spreadsheet?page=5
Ive added the .story file with the JS trigger, following the instructions from the link above replace your URL where prompted in the JS.
https://www.youtube.com/watch?v=PopxRVnuTIU&list=PLIO7o3VwD0X9y87q0lTCh3YtIJuIi3kkT&index=3&t=0s
This shows you how to merge the variable data stored in the sheet from your SL module into a template doc to create a PDF (in this case it is a name badge but the principle is the same for a certificate)
yeah - i've seen this one before - will have to sit down somewhere without any distractions and nut it out!
This discussion is closed. You can start a new discussion or contact Articulate Support.