Do you have an issue with a specific file(s)?
For some reasson I only can load
webviewer-ui.min.js
webviewer-core.min.js
PDFNet.js
Can you reproduce using one of our samples or online demos?
No
Are you using the WebViewer server?
No
Does the issue only happen on certain browsers?
Same issues for all the browsers
Is your issue related to a front-end framework?
Yes, I am working with Nustjs 2
Is your issue related to annotations?
No
Please give a brief summary of your issue:
(Think of this as an email subject)
Please describe your issue and provide steps to reproduce it:
I have tried to use the viewer (in the corner of the page only for test) but for some reason is impossible. Once I do this.$webViewer(this.getViewerConf, viewerElement) the viewer app never loads the response of this promise… In general we should do this
this.$webViewer(this.getViewerConf, viewerElement)
.then(
(instance) => {…})
}
)
So App never gets into the (.then).
As long I see the issue is related to a rejected promise… I mean this.$webViewer(this.getViewerConf, viewerElement) is return a promise and for some reason is getting rejected .
It could be the this.path is not pointing to the correct spot where the WebViewer files live.
Does your directory look like this guide? PDFTron Systems Inc. | Documentation
One last question, does this sample work for you out of the box?
Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron
Yes, I have tested (the demo), and it is working fine but when I try to replay the solution in my app the promise from WebViewer().then((instance)=>{}) doesn’t work.
Did you check the path to the lib files this.path?
If you could provide a sample that this issue is reproducible with since this is only occurring on your implementation, that would be very helpful!
Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron