如何在Web浏览器中查看PDF(像gmail这样的东西) [英] How to View PDF within web browser (Something like gmail )
本文介绍了如何在Web浏览器中查看PDF(像gmail这样的东西)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在varbinary(max)中有一个pdf文件。所以我想查看pdf文件而不下载。
I Have a pdf file in varbinary(max).so I want to view pdf file without download.
推荐答案
在局部视图中显示您的pdf文件:
1)您可以使用embed html标签而无需任何第三部分脚本:
< embed src =https://www.adobe.com/enterprise/accessibility/pdfs/acro6_pg_ue.pdfwidth =500height =375type ='application / pdf' >
2)或者您可以使用 PDF.js ,点击以下链接即可找到其文档:链接到PDF.js
Hi,
to show your pdf file in partial view :
1) You can use embed html tag without need any thrid part script :
<embed src="https://www.adobe.com/enterprise/accessibility/pdfs/acro6_pg_ue.pdf" width="500" height="375" type='application/pdf'>
2) Or you can use PDF.js, you will find its documentation by clicking on the following link : Link to PDF.js
"<iframe src= '"+fileName+"' width='800px' height='600px' >" + "</iframe>";
这是als完成。
This is also done.
这篇关于如何在Web浏览器中查看PDF(像gmail这样的东西)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文