Forum Discussion

SarahNewman-804's avatar
SarahNewman-804
Community Member
12 months ago

JavaScript Create PDF Error

I'm working on a tool that allows learners to create a job plan based on the specifics of an installation/jobsite. They answer questions and the course/tool builds out a plan using variables.

I've gotten the full plan to populate on a single slide, and I can print that slide. My preference, though, is to send the plan to a PDF using JavaScript. I used this post to create my JavaScript: https://community.articulate.com/discussions/articulate-storyline/creating-downloadable-pdf-files-in-storyline-an-update-on-earlier-methods

I publish for Review locally and add the PDF to the zip file. When I upload it and check the JavaScript by clicking the button it's attached to, I get this error:

AccessDeniedAccess Denied0250CKGY273YHNBTyseYqDxfnAUPrgDNqmEbuhDBQbOcME2zQKaxYYocD9/yxbtXXw0tQWwvUaf27zQymsPEFvA9wYiyRPyf5fikeQ==

Any thoughts about why this might be happening?

  • The pathing and URL format within your fillForm code isn't correct for local file serving. I'd suggest researching the "file://" format of URLs. I've unstuck many fellow SL developers tackle local file access issues.