vue-bw-pdf
v0.1.5
Published
基于vue-pdf-app升级的版本,可以预览电子签章和特殊中文字体,并且直接汉化操作栏
Readme
vue-bw-pdf
此处参考的是vue-pdf-app组件库做的版本升级,并且汉化版本了处理
0.1.2版本是 完善了渲染电子签章和特殊中文字体的展示
0.1.3版本是 将css注入到js脚本内容中,并且移除了非必要的依赖包
0.1.4版本是 提供了关闭PDF内容中是否解析js脚本的开关 isEvalSupported 默认是true.不希望解析js脚本设置为false
0.1.5版本是 提供了批量标注,跳转页码,根据目录的dest跳转页码的功能
<template>
<vue-bw-pdf style="height: 100vh;" pdf="https://501351981.github.io/vue-office/examples/dist/static/test-files/test.pdf" />
</template>
<script>
import VueBwPdf from "vue-bw-pdf";
export default {
components: {
VueBwPdf
}
};
</script>- 批量标注
<script>
methods: {
batchLabeling(){
// 页码,坐标系【前四位是固定坐标用于生成位置,其他可任意参加,callBack为标注的点击回调事件】
this.$refs.pdfView.businessUtils().batchLabelingFn(1, [[100, 100, 200, 300, { name: 123 }], [300,300,400,400]], (item)=> {
console.log(item)
})
}
}
</script>