开源 Javascript PDF 查看器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3539879/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 05:04:50  来源:igfitidea点击:

Open Source Javascript PDF viewer

javascriptpdfopen-source

提问by mhb

Is there any open source Javascript based PDF Viewer available? Any guide to developing this kind of script that renders PDF docs would be helpful.

是否有任何基于 Javascript 的开源 PDF 查看器可用?任何开发这种呈现 PDF 文档的脚本的指南都会有所帮助。

回答by imladris

There are some guys at Mozilla working on implementing a PDF reader using HTML5 and JavaScript. It is called pdf.jsand one of the developers just made an interesting blog postabout the project.

Mozilla 有一些人致力于使用 HTML5 和 JavaScript 实现 PDF 阅读器。它被称为pdf.js,其中一位开发人员刚刚发表了一篇关于该项目的有趣博客文章

回答by brendan.dahl

There is an open source HTML5/javascript reader available called Trapeze though its still in its early stages.

有一个名为 Trapeze 的开源 HTML5/javascript 阅读器可用,尽管它仍处于早期阶段。

Demo site: https://brendandahl.github.io/trapeze-reader/demos/

演示站点:https: //brendandahl.github.io/trapeze-reader/demos/

Github page: https://github.com/brendandahl/trapeze-reader

Github 页面:https: //github.com/brendandahl/trapeze-reader

Disclaimer: I'm the author.

免责声明:我是作者。

回答by Charles

You can use the Google DocsPDF-viewing widget, if you don't mind having them host the "application" itself.

您可以使用Google DocsPDF 查看小部件,如果您不介意让它们托管“应用程序”本身。

I had more suggestions, but stack overflow only lets me post one hyperlink as a new user, sorry.

我有更多建议,但堆栈溢出只允许我以新用户的身份发布一个超链接,抱歉。

回答by Russell Leggett

Well it's not even close to the full spec, but there is a JavaScript and Canvas based PDF viewerout there.

嗯,它甚至不接近完整的规范,但是有一个基于 JavaScript 和 Canvas 的 PDF 查看器

回答by vsync

Check out the HTML5 PDF viewer:

查看 HTML5 PDF 查看器:

http://flexpaper.devaldi.com/demo/

http://flexpaper.devaldi.com/demo/