Hi there,
We are using the WebViewer successfully in Chrome to do some text searching on PDF documents, however the same code fails on Firefox. This is the setup code (using Webpacker for assets) -
CoreControls.setWorkerPath('/packs/webviewer/core')
PDFNet.initialize()
.then(() => PDFNet.addResourceSearchPath('/packs/webviewer'))
.then(() => {
setSearchTerms(terms)
setSearchCount(0)
})
In Firefox, we get the following error in console -
Unknown action from worker: pdfNetAddResourceSearchPath PDFworker.js:1:13232
Error: Unknown action from worker: pdfNetAddResourceSearchPath
As far as I'm aware, the WebViewer is supported across major browsers. Anything we might be doing wrong?
Thanks,
Xavier Hocquet