我们都知道在配置了Office Web App的SharePoint环境中,打开一个PDF文件,默认会在Word Web App中打开这个PDF文件。
这时候如果你不想要使用这种方式 打开,而是想使用PDF reader打开PDF文件要如何处理呢?本文对此方法做介绍。
具体步骤如下:
1. 在server中,使用Administrator打开SharePoint Management Shell
2. 执行下面命令
- Get-SPWopiBinding -Action "MobileView" -Application "WordPDF" | Remove-SPWopiBinding -Confirm:$false
- Get-SPWOPIBinding –Application "WordPDF" | Remove-SPWOPIBinding -Confirm:$false
3. 在执行完成后,尝试打开PDF file,file会使用PDF reader打开
4. 如果在设置完成后,想调整回使用Office Word App方式打开,可以执行下面命令实现:
- Get-SPWOPIBinding –Application "WordPDF" | Remove-SPWOPIBinding -Confirm:$false
- New-SPWOPIBinding –ServerName "Office Web Apps Server Name" –Application "WordPDF" -AllowHTTP
感谢阅读!