用于文档预览的jQuery脚本?

编程入门 行业动态 更新时间:2024-10-11 19:25:44
本文介绍了用于文档预览的jQuery脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

推荐答案

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

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脚本?

本文发布于:2023-11-28 12:17:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642365.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚本   文档   jQuery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!