You need to sign in to do that
Don't have an account?
Hartley
Uncaught ReferenceError: AcroForm is not defined
Hey,
Having an issue with attempting to use jsPDF as a library within my lightning component. I have uploaded the zip as a Static Resource, and am have properly included the file in my application.
The issue is when my page loads I get the followign error:
Uncaught ReferenceError: AcroForm is not defined throws at /resource/JSPDF101/jsPDF-1.2.60/dist/jspdf.min.js:238:8028
I've tried the minified and debug version of the file, both of which are giving me the same error message.
I've been unable to find out why this is happening. Now I had imagined that all of this would be properly handled by the jsPDF file, but seems there are some reference problems. I even attempted to load the acroform.js file as a Static Resource separately but to no avail.
Any help is greatly appreciated, thank you.
Having an issue with attempting to use jsPDF as a library within my lightning component. I have uploaded the zip as a Static Resource, and am have properly included the file in my application.
The issue is when my page loads I get the followign error:
Uncaught ReferenceError: AcroForm is not defined throws at /resource/JSPDF101/jsPDF-1.2.60/dist/jspdf.min.js:238:8028
I've tried the minified and debug version of the file, both of which are giving me the same error message.
I've been unable to find out why this is happening. Now I had imagined that all of this would be properly handled by the jsPDF file, but seems there are some reference problems. I even attempted to load the acroform.js file as a Static Resource separately but to no avail.
Any help is greatly appreciated, thank you.
can you share your lightning component code where you add static resource reference for js file ?
Here is where I add the static resource
Go to Setup select Critical Update-:
Deactivate: Enable Lightning LockerService Security
and try again and let me inform it will work or not ! :)
The Enable Lightning LockerService Security was already disabled on my sandbox, so that didn't work. Any other ideas?
Can you please help me with the code you used in Component and controller to get this working? I am facing the same issue