npm install https://github.com/danieldas/vue-pdf-annotate
<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>