张秀琦
这个作者很懒,什么都没留下…
展开
-
pdf.js学习笔记
因项目需要在浏览器上展示和操作PDF文件,在查找相关库后决定先学习下pdf.js。一、下载pdf.js源码并编译 首先我们到其官网http://mozilla.github.io/pdf.js/ 点击github project按钮在github中下载源码包pdf.js-master.zip。既然获得源码了,第一步自然是看readme喽。在readme中我们得知要编译pdf.js我们需要先原创 2017-02-14 15:04:10 · 6306 阅读 · 1 评论 -
pdf.js源码学习从helloworld开始
首先我们先在web服务器下新建一个helloworld文件夹,把我们编译好的pdf.js和pdf.worker.js拷贝到该目录下然后再创建一个hello.js和一个hello.html得到如下图文件目录: hello.js代码如下: 'use strict';// // Fetch the PDF document from the URL using promises // //使用pd原创 2017-02-17 14:25:42 · 1907 阅读 · 0 评论