Overview
PDFTron Viewer is used in M-Files Hubshare to preview the files you will have in your M-Files widgets or in the Files module.
Sometimes, you could have some issues with the viewer or some slowness in your environment. This article will show you how to run a script to uninstall and reinstall PDFTron viewer (along with its service).
Solution
- Open Windows PowerShell as an administrator
- Change directory to the version you're currently using and go inside \Automation\Scripts\
Here's an example: C:\Hubshare\Packages\4.0.5.9\Automation\Scripts. - Now run this command:
.\EnsureViewerInstalled.ps1 -AllowUpgrade
The PowerShell script will now proceed to uninstall the PDFTron viewer (service and application) and do a fresh reinstallation.
This process can take a few minutes, as it should begin to look like this: - If you see a line mentioning "http://xxx:8090/demo seems reachable" like in the screenshot below it means the re-installation was a success.
You can go to that URL and test the viewer there if you want to.
Note:
If the process fails, please open a new case with M-Files Support and send us the log file generated inside C:\Hubshare\Logs\Webviewer\ (you should see the path in the PowerShell window)
If the process succeeds and you're still encountering issues, grab your recent logs (Here's how to do it: /article/Hubshare-How-to-get-product-logs-On-Premise) and open a new case with M-Files Support.
