Can't install PDFNet on my desktop

Hello there!

I encountered a problem while installing PDFNet on my PC. I downloaded WebViewer, I started a local server and I followed the instructions presented here https://www.pdftron.com/documentation/web/guides/pdfnetjsfull/getting-started/ . When I open my browser there is nothing displayed on the screen and the console prints the following errors:

"unreachable code after return statement[Learn More] CoreControls.js:250:190
Your server has not been configured to serve .gz and .br files with the expected Content-Encoding. See http://www.pdftron.com/kb_content_encoding for instructions on how to resolve this. PDFworker.js:132:417
unreachable code after return statement[Learn More] CoreControls.js:250:190"

What can I do in order to solve this issue?

The “our server has not been configured to serve .gz and .br files with the expected Content-Encoding” is just a Warning, and fall backs are used to still display the PDF.

If you are only hitting this issue in FireFox, then you might be running into this FireFox issue.

https://groups.google.com/d/msg/pdfnet-webviewer/pxbrn_apLKM/vUbfTSCKBQAJ

If that is not the case, did you try running one of our SDK samples first? Screenshot below shows how to run our PDFNetJSFull samples.

Capture.PNG

If the above information does not help, can you provide screenshots of what you see in the browser, the javascript console, and the network panel. Also provide your WebViewer constructor code, and the URL you are using to load the PDF.