Posted 17 August 2021, 3:40 am EST
We’d like to load GcPdfViewer from the jsdeliver CDN (https://cdn.jsdelivr.net/npm/@grapecity/gcpdfviewer/gcpdfviewer.min.js) because we can’t use NPM and want to always get the latest version.
However, it doesn’t seem like we can load the worker from the CDN (https://cdn.jsdelivr.net/npm/@grapecity/gcpdfviewer/gcpdfviewer.worker.js)
So two questions:
- Is the worker even needed? In your PureJS example it is not used (View PDF | View PDF | Grapecity Product Demos)
However, we are using Typescript and it’s not working without the worker. Is it required for working with the viewer with TypeScript?
- If the worker is required, can we load it from the CDN like the main viewer script? Again, we can’t use NPM and don’t want to manage JS dependencies locally.