用于文档预览的jQuery脚本? [英] Jquery script for document preview?

查看:92
本文介绍了用于文档预览的jQuery脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您是否知道jQuery中的任何组件,可用来在浏览器中预览.doc,.pdf,.jpg ....文件? 谢谢

Do you know any components from jQuery with which you can preview .doc,.pdf,.jpg .... files in browser ? Thanks

推荐答案

如果您确实希望将其全部本机保留在浏览器中,则可以使用

If you really want to keep it all native inside the browser you can display images on their own and pdfs with pdf.js.

如果您只需要以某种方式显示它,建议您查看 Google文档查看器(正式停产,请参见下文),它允许您使用许多不同的文件,然后可以将其嵌入到上述altschuler脚本之一中. (请参阅我对他的回答的评论,为什么仅这些工具不能解决问题)

If you only need to display it somehow I advise you to look at Google docs viewer (officially discontinued, see below) which allows you lots of different files and which you can next embed in one of the scripts altschuler mentioned. (See my comment to his answer why those tools alone don't do the trick)

Google文档查看器支持的文件类型

Supported file types by google docs viewer

  • Microsoft Word(.DOC和.DOCX)
  • Microsoft Excel(.XLS和.XLSX)
  • Microsoft PowerPoint(.PPT和.PPTX)
  • Adob​​e可移植文档格式(.PDF)
  • Apple Pages(.PAGES)
  • Adob​​e Illustrator(.AI)
  • Adob​​e Photoshop(.PSD)
  • 标记图像文件格式(.TIFF)
  • Autodesk AutoCad(.DXF)
  • 可缩放矢量图形(.SVG)
  • PostScript(.EPS,.PS)
  • TrueType(.TTF)
  • XML纸张规范(.XPS)
  • 存档文件类型(.ZIP和.RAR)
  • Microsoft Word (.DOC and .DOCX)
  • Microsoft Excel (.XLS and .XLSX)
  • Microsoft PowerPoint (.PPT and .PPTX)
  • Adobe Portable Document Format (.PDF)
  • Apple Pages (.PAGES)
  • Adobe Illustrator (.AI)
  • Adobe Photoshop (.PSD)
  • Tagged Image File Format (.TIFF)
  • Autodesk AutoCad (.DXF)
  • Scalable Vector Graphics (.SVG)
  • PostScript (.EPS, .PS)
  • TrueType (.TTF)
  • XML Paper Specification (.XPS)
  • Archive file types (.ZIP and .RAR)

尽管我不建议在生产系统或专业系统上使用此用法,但是您仍然可以按照

Although I wouldn't recommend this usage on production or professional systems, you can still use the system as described here.

这篇关于用于文档预览的jQuery脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆