lichen-annotate-pdf

Annotation layer for pdf.js in vue fork of Aaron Leong pdf-annotate-vue
8,368 3
Install
npm install lichen-annotate-pdf
Latest Version:2.0.35
License:MIT
Last Updated:Nov 2, 2019
Links: GitHub  ·  npm
Maintainer: gcorbel_4

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

pdf-annotate-vue

Annotation layer for pdf.js in vue

994 19
vue-pdf-next

基于vite+vue3+pdfjs的pdf预览插件

4,874
@xtctwins/tctwins-pdf-core

Reusable PDF core with Vue 3 viewer, tile rendering, annotations (measure/rectan...

771
vue-pdf-cdn

Lightweight PDF viewer for Vue.js using CDN

8,142 3
vue3-pdf-app

Vue 3 PDF viewer

518,317 105

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