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