vue-pdf-reader

0.2.9 • Public • Published

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.

[ ] ...

Readme

Keywords

none

Package Sidebar

Install

npm i vue-pdf-reader

Weekly Downloads

210

Version

0.2.9

License

MIT

Unpacked Size

1.18 MB

Total Files

5

Last publish

Collaborators

  • qijiayoudao