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) -
I’m not the main developer on this side of things so apologies if anything sounds confusing coming from me.
It looks like we are loading both in order to use CoreControls to use some of the searching functionality. We are using the WebViewer UI to display documents. We have the following included in the page -
And just to reiterate, the same method calls work successfully in Chrome.
Hey, thanks for the feedback however we’ve identified our issue. There were two -
First, we were still using display: none; somewhere in a parent component which is a known issue with Firefox and PDFtron Webviewer
Second, we were loading the CoreControls in additional to WebViewer.js, when we could just get CoreControls from the WebViewer import in the first place