lichen-annotate-pdf
lichen-annotate-pdf
Annotation layer for pdf.js in vue, based on the 'pdf-annotate-vue' package
Make sure you are on the deploy branch to see the last version.
Install
npm install lichen-annotate-pdf@latest
Local development
# 1 - In lichen-annotate-pdf folder
npm install
npm link
# 2 - In another vue project
npm uninstall lichen-annotate-pdf # Remove official release
npm link lichen-annotate-pdf # Add local package
# 3 - Once you are satisfied, in the lichen-annotate-pdf folder
npm unlink
npm publish
# 4 - Then, in the vue project
npm unlink lichen-annotate-pdf
npm install lichen-annotate-pdf@latest
Publish
Update the app version in the package.json file. Then run the following command :
npm install
npm publish
Props
See all the propos and local data in the pdfAnnotate component.
Quick Example fron pdf-annotate-pdf
<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>
Related Packages
@xtctwins/tctwins-pdf-core
Reusable PDF core with Vue 3 viewer, tile rendering, annotations (measure/rectan...
771
Version History
| Version | Released | License |
|---|---|---|
| 2.0.35 | MIT | |
| 2.0.34 | MIT | |
| 2.0.33 | MIT | |
| 2.0.32 | MIT | |
| 2.0.31 | MIT | |
| 2.0.30 | MIT | |
| 2.0.29 | MIT | |
| 2.0.28 | MIT | |
| 2.0.27 | MIT | |
| 2.0.26 | MIT | |
| 2.0.25 | MIT | |
| 2.0.24 | MIT | |
| 2.0.23 | MIT | |
| 2.0.22 | MIT | |
| 2.0.21 | MIT | |
| 2.0.20 | MIT | |
| 2.0.19 | MIT | |
| 2.0.18 | MIT | |
| 2.0.17 | MIT | |
| 2.0.16 | MIT | |
| 2.0.15 | MIT | |
| 2.0.14 | MIT | |
| 2.0.13 | MIT | |
| 2.0.12 | MIT | |
| 2.0.11 | MIT | |
| 2.0.10 | MIT | |
| 2.0.9 | MIT | |
| 2.0.8 | MIT | |
| 2.0.7 | MIT | |
| 2.0.6 | MIT |
Showing the latest 30 of 113. See every release on npm