Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? Yes
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No, Happens in both Chrome and Brave
Is your issue related to a front-end framework? Yes
Is your issue related to annotations? No
Please give a brief summary of your issue:
Hello, my team is testing out PDFTron for an Angular project (NOT AngularJS) and we wanted to test out the custom UI abilities of this library.
i get the following error ERROR TypeError: Cannot read properties of undefined (reading 'setWorkerPath')
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
After importing pdftron webviewer library. Create an angular component and writing the following code
This doesn’t answer my question. I can get this running through the WebViewer just fine too, but Im looking to use a custom UI without the viewer. However Im not sure how to get access to Core with a custom UI.
I was facing the same problem using Angular 13. No problems when using WebViewer but no chance to run without viewer. In my case I was referencing the wrong script in my scripts array under angular.json. In additon to webviewer-core.min.js you need pdf/PDFNet.js :