Error in function Anonymous function jspdf
Can someone please help me to fix my issue?
Currently, I Have created a Custom Script Based on PHP but using Embedded JS.
The requirement is to generate a PDF Document containing information from custom objects and fields, I've tried to use JSPDF but when I execute the file from the Console there is an error message appearing on my screen that says "Error in function Anonymous function". But, when I tried to open/execute the script on Chrome or Edge it's working just fine (PDF Generated).
Can anybody tell me what I must do to fix the issue, so when I execute the script from the console it will not error.