pdf.js 1.0

之前介绍的 HTML5 技术的 PDF 解析器 pdf.js 升级至 1.0 版本,并且将成为未来 Firefox 内嵌的 PDF 阅读器。

和 Google Chrome 使用的源自 Foxit 的闭源 PDF 浏览插件不同,PDF.js 是基于开放的 HTML5 及 JavaScript 技术实现的开源产品

源代码仓库访问

免重启测试版扩展安装

下面是在 Fedora 16 预装的 Firefox 7.0.1 上使用该扩展浏览 UEFI Secure Boot Impact on Linux 白皮书的样子:

从结果中可以看到常见的 PDF 阅读功能一应俱全,渲染速度上也已经和本地的 PDF 阅读插件无异。

毫无疑问 pdf.js 将被整合入 Gecko 成为 Firefox 的内嵌 PDF 阅读器,但是具体整合时间表尚未确定。

消息来源Geek

Read More:

31 Comments

  1. 1 muxueqz Commented @ 2011-10-29 11:43Reply to this comment

    赞,其它浏览器也通用吗?

  2. 2 leyle Commented @ 2011-10-29 12:07Reply to this comment

    打开不了图片版本的pdf

  3. 3 Bardon Commented @ 2011-10-29 12:13Reply to this comment

    装了扩展,打开链接,为啥么俺浏览的pdf是乱码?

  4. 4 leyle Commented @ 2011-10-29 12:13Reply to this comment

    哦,原来是要用自身的 open,而不是ff的open file

  5. 5 luojie-dune Commented @ 2011-10-29 12:39Reply to this comment

    不错。。。可惜不能自动从网络找 webfont。

  6. 6 自由建客 Commented @ 2011-10-29 13:02Reply to this comment

    效率如何? evince 慢死了, mupdf 逐页读去,更慢。

  7. 7 Justin Yang Commented @ 2011-10-29 13:11Reply to this comment

    @Bardon: 我也乱码~~~

  8. 8 Bardon Commented @ 2011-10-29 13:32Reply to this comment

    @自由建客: MuPDF还行吧,空格键翻译,不慢吧

  9. 9 依云 Commented @ 2011-10-29 14:13Reply to this comment

    @自由建客: 我这里比 evince 更慢,而且渲染的字体大小有时候不正确。

    @luojie-dune: PDF 字体一般内嵌,为什么要用 web font 呢?

  10. 10 fanhe Commented @ 2011-10-29 14:18Reply to this comment

    显示效果, adobe reader 和 chrome 最好. 可惜前者太慢, 后者看不了标签, 也保存不了书签. 为什么这么悲剧啊.

  11. 11 黑传说 Commented @ 2011-10-29 14:20Reply to this comment

    能批注么?我个人认为没有批注功能的任何阅读器,渲染速度再快也是残废。

  12. 12 pingz Commented @ 2011-10-29 14:53Reply to this comment

    @黑传说: 那个准确地说是用来渲染pdf文件的,与现在热炒的“阅读器”概念有着本质的不同……有些时候html不能满足需要,一些网站会提供pdf文件。这些pdf只是用来正确的表示网站想要表达的东西。用户不需要任何批注功能,他们只想尽快看到他们想看的东西。

  13. 13 jiazhoulvke Commented @ 2011-10-29 15:59Reply to this comment

    咋不支持chrome? chrome自带的那个功能太弱了

  14. 14 Sunday Commented @ 2011-10-29 16:35Reply to this comment

    @黑传说:用户需求、需求啊、、、大伙儿都是搞软件的~~~!!!

  15. 15 luojie-dune Commented @ 2011-10-29 17:11Reply to this comment

    @依云:

    因为windows下 firefox测试失败了。

    @fanhe:

    怎么会, evince之类效果不好么。。。

    @黑传说:

    批注是啥?

  16. 16 feng Commented @ 2011-10-29 17:37Reply to this comment

    我的 firefox 是指定字体,禁止使用网页的字体的,所以显示的时候很多字母位置重叠了。

  17. 17 cdcd Commented @ 2011-10-29 18:05Reply to this comment

    HTML5是什么,就是比java VB更简单的语言。要什么就加个标签搞定,SB都能编程了。。

  18. 18 cjxgm Commented @ 2011-10-29 18:19Reply to this comment

    要是这个可以禁用内嵌字体就好了。话说宋体和 Times New Roman 把我搞得好痛苦啊!什么时候这两者可以永久的从我眼前(至少从我屏幕上)消失啊!!

  19. 19 hantsy Commented @ 2011-10-29 18:23Reply to this comment

    Adobe reader 少不了

  20. 20 依云 Commented @ 2011-10-29 18:50Reply to this comment

    @cjxgm: 用 fontconfig 进行字体替换就好了嘛。

  21. 21 qiang_liu8183 Commented @ 2011-10-29 18:59Reply to this comment

    试了一下,不错,只是查看的话evince之流可以下岗了

  22. 22 tmk Commented @ 2011-10-29 19:19Reply to this comment

    不支持中文,果断卸载

  23. 23 黑传说 Commented @ 2011-10-29 19:52Reply to this comment

    @luojie-dune: 你,你,你不会要问“批注可以吃不”吧?

    “批注: 阅读时在文中空白处对文章进行批评和注解,作用是帮助自己掌握书中的内容。”

  24. 24 delectate Commented @ 2011-10-29 20:36Reply to this comment

    批注对于我来说暂时可有可无,没有大量 pdf 文献,本科生要求不高嘛。如果批注,更推荐文献管理工具,不要为了一个js实现的渲染要求太多。

  25. 25 openwares.net Commented @ 2011-10-29 21:14Reply to this comment

    xpdf也不错

  26. 26 dummytaurus Commented @ 2011-10-29 21:24Reply to this comment

    没有vim控用zathura的吗?

  27. 27 rezilla Commented @ 2011-10-29 21:34Reply to this comment

    @dummytaurus: zathura还没不支持连续视图吧?

  28. 28 luojie-dune Commented @ 2011-10-29 21:43Reply to this comment

    @黑传说: 额一向是复制出来,加上段落——引用的做法。。。

  29. 29 dummytaurus Commented @ 2011-10-30 18:42Reply to this comment

    @rezilla: 0.0.8.4都还不支持,不过bug服务器上已经说实现了,新版本应该就支持了。

  30. 30 adam8157 Commented @ 2011-10-30 20:08Reply to this comment

    不错哦. 表示从来不批注, 上学的时候也从来不做笔记...

  31. 31 rezilla Commented @ 2011-10-30 20:37Reply to this comment

    @dummytaurus: 那可以期待下了 记得原来有人报feature request然后还被关掉了,以为是作者不关心这个来着。。。