乐于分享
好东西不私藏

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

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>