尝试使用 jQuery 查看 pdf、Doc、文本、图像文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10510883/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Trying to view pdf, Doc, text, image file using jQuery
提问by Krishan
I want open/Preview pdf. doc, text, image files using Jquery... My web application is built using ASP.Net MVC. How can i do this?
我想要打开/预览 pdf。使用 Jquery 的文档、文本、图像文件...我的 Web 应用程序是使用 ASP.Net MVC 构建的。我怎样才能做到这一点?
回答by Mobile Tech.
check this link of github its the javascript pdf viewwer you can use this in your jquery. http://mozilla.github.com/pdf.js/
检查github的这个链接它的javascript pdf查看器你可以在你的jquery中使用它。 http://mozilla.github.com/pdf.js/
here are the list of pdf viewer plugin list in jquery
这是jquery中pdf查看器插件列表的列表
http://www.jquery4u.com/javascript/javascriptjquery-pdf-viewer-plugins/
http://www.jquery4u.com/javascript/javascriptjquery-pdf-viewer-plugins/
Here is the jQuery image viewer plugin code from jquery website it self - its the thick box plugin.
这是来自 jquery 网站的 jQuery 图像查看器插件代码它自己 - 它是厚框插件。
http://jquery.com/demo/thickbox/
http://jquery.com/demo/thickbox/
if you want to display pdf in your website page - in .php website page ,then you can use tcpdf php class.
如果您想在您的网站页面中显示 pdf - 在 .php 网站页面中,那么您可以使用 tcpdf php 类。
here is its link check it. http://www.tcpdf.org/
这是它的链接检查它。 http://www.tcpdf.org/
here is the link for pdfobject
这是pdfobject的链接
PDFObject embeds PDF files into HTML documents
PDFObject 将 PDF 文件嵌入到 HTML 文档中
I hope it helps.
我希望它有帮助。
回答by Jamie Carl
It's pretty basic at the moment, but I've started building this:
目前这是非常基本的,但我已经开始构建这个: