function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael AignerMichael Aigner 

jsPDF and Salesforce Lightning Web Component

I'm trying to create a Salesforce Lightning Web Component to create a custom Quote PDF using jsPDF. I mastered to use the external chart.js library with uploading it as a static resource, but when I try to do the same with jsPDF.js I always get a security error "SecureElement does not allow access to charset" while calling jsPDF.
Has anyone an answer to that or an alternative solution to create PDFs with Lightning Web Components?
Thanks, Michael
Brian Watts 21Brian Watts 21

Have you tried disabling lightning locker?

Disable Lightning Locker for a Component | Developer Guide  (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security_ls_disable.htm)