Skip to content

Deguang/vue-pdf-reader

Repository files navigation

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.

[ ] ...

About

A vue pdf reader component, based on pdf.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published