vue-pdf-reader
v0.2.9
Published
A vue pdf reader component, based on pdf.js of Mozilla
Downloads
1,283
Readme
vue-pdf-reader
A vue pdf reader component, based on pdf.js.
How to use
# install dependencies
npm install vue-pdf-reader
// use in vue
import VuePdfReader from 'vue-pdf-reader';
Vue.use(VuePdfReader);
/* CSS */
@import '~vue-pdf-reader/vue-pdf-reader.css';
Another way:
This package may cause long time to build with webpack, so you can import this lib as follows
<head>
...
<link rel="stylesheet" type="text/css" href="${some_domain}/vue-pdf-reader.min.css">
<script src="${some_domain}/vue-pdf-reader.min.js"></script>
...
</head>
Props
|propName|isRequired|defaultValue|remark| |-|-|-|-| |url|true|empty|The Uri for pdf file.| |laoding-text|false|'File loading...'|The remind text for loading.| |||||
TODO
[ ] zoom document.
[ ] ...