Forum Discussion
Example files: Generating a certificate from Storyline
I gave a couple of frameworks as well as a PDF native method a spin. One of them didn't work consistently between browsers despite the documentation indicating support. The other worked but I didn't have time to dig into it. I don't recommend the JavaScript frameworks due to the complexity. The PDF method is great but there's a drawback that requires user intervention to turn off the built-in Chrome PDF viewer if it's installed and the user is opening the presentation in Chrome.
The one that didn't work in the latest version on their demo site.
http://parall.ax/products/jspdf
The one that worked.
http://bytescout.com/products/developer/pdfgeneratorsdkjs/index.html
Both of these would require some javascript-fu to make the printable certificate.And I suspect there will be situations where it might not work since browsers all play by their own rules.
The other thing I was looking at was populating a pre-built PDF with fields / variables or fed via a querystring. This works well when it works and lets you be as decorative as you want to be with the certificate.
http://www.halnesbitt.com/pages/pdfqs.php
This works great. Except you need to disable the PDF viewer in Chrome to make it work in chrome://plugins/
Of all of these, I think the simplest and best option is the last option: Using a PDF with dynamic fields updated via querystring.
Hi Steve,
I realize it's been over 3 years since you posted this and you may not be following this thread anymore, so I'll also send you an inbox message. I just thought it might be useful for other people to see your answer here.
I figured out how to add the javascript to the PDF I built, but I'm not sure it's all set up correctly. The site you referenced doesn't really have instructions on how to use the javascript, other than to explain how to insert it in the Document Javascripts window. What would you do if you have more than one dynamic field that you want to pull data into? How do you get those fields to pull information from the published Storyline course? Do you just have to name the text entry fields using the same naming conventions as the text fields in the PDF?
If you're able to give me some assistance with this, I would really appreciate it!