pdf.js使用
0
首先去https://github.com/mozilla/pdf.js下载压缩包。
然后这个需要用到node.js编译,命令:
node make generic
编译后启动服务:
node make server
然后就可以使用了,我推荐使用:http://localhost:8888/web/viewer.html?file=/examples/learning/helloworld.pdf这个地址的浏览方式,功能齐全。
其他PDF在线预览的方式:http://wecoding.cn/?p=164
不过我建议去官网http://mozilla.github.io/pdf.js/下载吧,第一个地址编译后发现有乱码。