PDF预览取消下载、打印工具栏

 

在文件地址后添加一下代码即可

#scrollbars=0&toolbar=0&statusbar=0

例如

<iframe id="frmDoc" src='@ViewBag.OfficeUrl/wv/WordViewer/request.pdf?WOPIsrc=@Server.UrlEncode(ViewBag.OfficeUrl+"/oh/wopi/files/@/wFileId?wFileId="+ViewBag.MapUrl + ViewBag.ReportUrl)&type=accesspdf#scrollbars=0&toolbar=0&statusbar=0' width='840px' height='650px' frameborder='0' scrolling="yes"></iframe>

 

posted @ 2022-03-19 17:08  敲键盘的喵~  阅读(655)  评论(0编辑  收藏  举报