Package Exports
- pdf-annotate-vue
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pdf-annotate-vue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Install
npm install pdf-annotate-vue -S
or
yarn add pdf-annotate-vue -S
Example
<template>
<div id="app">
pdf path: {{pdf}}
<pdfAnnotate :src="pdf" :toolbar="toolbar" :commentWrapper="commentWrapper"></pdfAnnotate>
</div>
</template>
<script>
import pdfAnnotate from 'pdf-annotate-vue'
import "pdf-annotate-vue/src/css/toolbar.css";
import "pdf-annotate-vue/src/css/pdf_viewer.css";
export default {
name: 'home',
components: {
pdfAnnotate
},
data(){
return {
pdf: './static/output.pdf',
toolbar: true,
commentWrapper: true,
}
}
}
</script>