PDF 生成模板编辑器
开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。
在 WebViewer 中显示的注释,有时我们需要显示或隐藏这些注释,可以使用 annotationManager 来实现,需要注意只是在 WebViewer 中显示或隐藏,不影响实际在 PDF 中的显示或隐藏。
可以通过 annotationManager 中的 showAnotations 方法来显示注释
const annotationManager = docViewer.getAnnotationManager()
const annotationsList = annotationManager.getAnnotationsList()
docViewer.showAnotations(annotationsList)可以通过 annotationManager 中的 hideAnotations 方法来显示注释
const annotationManager = docViewer.getAnnotationManager()
const annotationsList = annotationManager.getAnnotationsList()
docViewer.hideAnotations(annotationsList)