Forum Discussion
Help - Calling all Javascript experts!
Hi Tracy,
I made a few changes to the JavaScript in your story file and added few files in "pdf_cert" folder.
JavaScript in the story file checks for LMS availability.
If accessed from an LMS, It pulls out the student name from LMS, else the name given by the user in the course will be printed out.
All you need to do is, add "pdf_cert" folder in the publish output.
Here is the demo:
https://cloud.scorm.com/sc/InvitationConfirmEmail?publicInvitationId=d7c8958b-a4f9-4612-a0e5-c39b238d0726
This must work for both Flash and HTML5.
Download Source, Publish and pdf_ceft.zip below
- TracyCarroll8 years agoCommunity Member
Thank you so much for your help, Godwin!
The client doesn't have an LMS, so I published the Storyline file for the web, and included the "pdf_cert" folder in the published output (attached).
It printed out the Certificate without the background (Certificate.pdf), although the image in the browser (screenshot certificate.png) showed the background perfectly. Is there anyway to get the pdf to show the certificate background, when not using an LMS?- alfagodwinomega8 years agoCommunity Member
Hi Tracy,
I see that you have tested the publish output from your local drive using chrome browser. As chrome blocks access to local files when a html page does not have a domain, pdf is printed out without the background.
The course must be hosted on a server, doesn't have to be an LMS to get the expected output.
If you need to test the output locally, you can view the course on Firefox.
Here is a demo link hosted on my server without LMS:
http://godwinvc.com/elearning/stoyline/PDF_Certificate_Example/story_html5.html- TracyCarroll8 years agoCommunity Member
AWESOME! Thank you so much, Godwin!