Some test text!
WebViewer provides PNaCl, WebAssembly and asm.js modules to allow for client side rendering of documents in many different browsers. Chrome is the only browser that supports PNaCl and as of Chrome 76 they have deprecated support for PNaCl modules unless you have enabled an origin trial on your website, though note that will only be valid until March 10, 2020 when PNaCl will be fully removed.
Below is the error message you might see in the browser console in Chrome 76:
In this case WebViewer will automatically use the WebAssembly module so there won't be any problems loading documents. You have three options for how to handle this: ignore the error, hide the error or enable the PNaCl origin trial.
As mentioned, WebViewer will automatically use WebAssembly so documents will continue to load without issues. You can safely ignore this error.
If you just want to remove the error but don't care about enabling the PNaCl origin trial you can pass the constructor option
backendType: 'ems' to WebViewer. This will force WebViewer to choose the WebAssembly or asm.js module and the error won't appear.
Although general WebAssembly performance in browsers is improving, the performance of PNaCl can still be better in some situations and you may want to continue using PNaCl until Chrome 80.
To do this you can register for the Chrome origin trial which will give you a token you can add to your page or response header to allow PNaCl to keep functioning. Register here.
To enable the origin trial on your website follow these steps.
Get the answers you need: Support
Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.
Select a platform to get started with your free trial.
Unlimited usage. No email address required.
Join our live demo to learn about use cases & capabilities for WebViewerLearn more