A vue pdf reader component, based on pdf.js.
# 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>
propName | isRequired | defaultValue | remark |
---|---|---|---|
url | true | empty | The Uri for pdf file. |
laoding-text | false | 'File loading...' | The remind text for loading. |
[ ] zoom document.
[ ] ...