寻找 HTML5 / Javascript PDF 页面翻转器

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

Looking for a HTML5 / Javascript PDF Page Flipper

javascripthtmlpdfflip

提问by Dave

I'm looking for a non-Flash 'page flipper' that is capable of displaying PDFs. The example I've been given (in Flash) is: http://www.mitsubishi-motors.nl/digital/1043/index/book/outlanderbrochure.aspx

我正在寻找能够显示 PDF 的非 Flash“页面翻转器”。我得到的例子(在 Flash 中)是:http: //www.mitsubishi-motors.nl/digital/1043/index/book/outlanderbrochure.aspx

I looked into Uniflip but it seems to be Flash only. FlipBook looks decent (jQuery) but doesn't seem to support PDFs.

我查看了 Uniflip,但似乎只有 Flash。FlipBook 看起来不错 (jQuery),但似乎不支持 PDF。

We can afford to pay for this, but we don't have time to build it ourselves. Does anyone know of anything out there?

我们有能力为此付费,但我们没有时间自己构建它。有人知道那里有什么吗?

Thanks!

谢谢!

采纳答案by afshin

Mozilla has been working on a JS-only PDF renderer for a while:

Mozilla 一直致力于开发纯 JS 的 PDF 渲染器:

https://github.com/mozilla/pdf.js

https://github.com/mozilla/pdf.js

Here's a demo of it in action:

这是它的实际演示:

http://mozilla.github.com/pdf.js/web/viewer.html

http://mozilla.github.com/pdf.js/web/viewer.html

But this is a proof-of-concept HTML5 library and it is cutting-edge. If you need to support a lot of browsers, you're stuck with Flash or rendering the PDF as graphics, neither of which is an attractive option.

但这是一个概念验证的 HTML5 库,它是前沿的。如果您需要支持很多浏览器,您就会被 Flash 困住或将 PDF 渲染为图形,这两种方式都不是一个有吸引力的选择。

回答by Alexandre Rafalovitch

This may not be a perfect match, but if you haven't seen them yet, check out:

这可能不是一个完美的匹配,但如果您还没有看过它们,请查看:

  1. Mozilla's PDF renderer in JavaScript
  2. Scribd's viewer is now in HTML5, as is SlideShare's. Maybe their commercial offering will work for you
  3. DocumentCloudmay have something you can use, or have the expertise to build it for you the way you want
  1. Mozilla 的 JavaScript 格式的 PDF 渲染器
  2. Scribd 的查看器现在是 HTML5格式SlideShare 的. 也许他们的商业产品对你有用
  3. DocumentCloud可能有您可以使用的东西,或者拥有以您想要的方式为您构建它的专业知识