Skip to content

PDF 生成模板编辑器

开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。

查看 GitHub

删除注释

通过deleteAnnotations方法删除单个/多个注释,可接受的参数:

  • 单个注释对象;
  • 多个注释对象组成的一维数组;
javascript
const annotationManager = docViewer.getAnnotationManager()
const annotationsList = annotationManager.getAnnotationsList()
annotationManager.deleteAnnotation(annotationsList[0])
annotationManager.deleteAnnotations(annotationsList)