pdf.js 0.2

使用 JavaScript 编写的 PDF 解析器发布 0.2 版本,实现Type 1 字体加载

同时还实现了:

  • 浓淡图像。
  • 混合字型。
  • 左侧预览视图。
  • 连续页滚动显示。

目前该功能在 Firefox Nightly 效果完美,其他浏览器亦可运行,但兼容性方面尚需改进。

效果测试

发布公告

Read More:

19 Comments

  1. 1 archl Commented @ 2011-07-04 18:19Reply to this comment

    还不到推广的时候。渲染PDF——

  2. 2 damn Commented @ 2011-07-04 19:07Reply to this comment

    牛人辈出

  3. 3 kidli Commented @ 2011-07-04 19:07Reply to this comment

    牛x。一直搞不懂并且很怕pdf这个东西,客户一提能不能输出pdf就头疼,更倾向于能用xml表达的东东。呵呵,谁知道怎么用pdf做gb的公文模版并且套打手写签名吗?

  4. 4 yjc Commented @ 2011-07-04 20:48Reply to this comment

    pdf有那么可怕吗?常年写latex生成pdf得路过。只是觉得麻烦些, 但好看啊

  5. 5 kidfruit Commented @ 2011-07-04 22:36Reply to this comment

    pdf美观,但是再创作能力低,不像xml这种开放的表达方式。

  6. 6 cuihao Commented @ 2011-07-04 22:38Reply to this comment

    性能低下…… 我也不指望有啥好性能。

  7. 7 cuihao Commented @ 2011-07-04 22:42Reply to this comment

    改天也学学JS。Python虽然好,不过Windows下没多少人自己装解释器。JS就不担心这个了。

  8. 8 黑传说 Commented @ 2011-07-04 23:20Reply to this comment

    和flash版的浏览器pdf浏览器比起来,好像可以接受。

  9. 9 ibex Commented @ 2011-07-05 0:42Reply to this comment

    对于经常上网查文献的孩子来说,的确是个吸引人的东西。不过更希望看到渲染以及字体上的进步,界面有多好看其实真的不在意。+u

  10. 10 iveney Commented @ 2011-07-05 5:07Reply to this comment

    渲染得很不錯啊, 速度也 ok, 大讚。

  11. 11 tayhe Commented @ 2011-07-05 7:35Reply to this comment

    只有我看着是:字母相互叠加的惨淡模样么?

  12. 12 hantsy Commented @ 2011-07-05 9:09Reply to this comment

    @kidli: 输出PDF正常不过了,很多项目都用。修改PDF的也有,以前遇到一个项目,提供了PDF模板,需要填充一些数据(PDF Form读取替换一下),加上条形码,输出最终PDF。这些都用ITEXT是很方便完成的。

  13. 13 hantsy Commented @ 2011-07-05 9:12Reply to this comment

    一般项目如果有输出要求,都会要求输出Excel,PDF(更趋向一些复杂的页面结构,不仅仅是表格)

  14. 14 muxueqz Commented @ 2011-07-05 9:29Reply to this comment

    Opera/Chrome运行后不能Open File

  15. 15 黑日白月 Commented @ 2011-07-05 9:30Reply to this comment

    @tayhe:

    目前只有 Firefox Nightly 渲染完美,谢谢~

  16. 16 kidli Commented @ 2011-07-05 9:57Reply to this comment

    @hantsy: 如果只是修改表格、死的form、简单的图形如条形码、加点水印都还好说,可对一些更灵活的需求比如意见来说就不好办了,如果是在word里,内容一多可以自动分页,itext里就没法控制,因为模版里的表格和新插入的意见都在不同的层上(也许有办法,我研究不深)。所以我们一般都输出excel、word、wps之类能用xml描述的格式,制作模版和二次开发都很简单,pdf能不碰就不碰,就算要碰,也倾向于弄台服务器装个office/wps来转换;)

  17. 17 cmicat Commented @ 2011-07-05 18:09Reply to this comment

    这个效率不高,chrome就直接用内置插件,效率高多了

  18. 18 imcn Commented @ 2011-07-05 19:57Reply to this comment

    学习学习!

  19. 19 fanhe Commented @ 2011-07-11 16:41Reply to this comment

    chrome 的pdf阅读器如果能显示书签和记忆上次阅读位置就完美了!