简体   繁体   English

如何禁用 PDFTron Webviewer 上注释的评论部分?

[英]How to disable the comments Section on annotation on PDFTron Webviewer?

I need to disable the comments and replies on annotatation on Doc.我需要禁用对文档注释的评论和回复。 I am using pdftron webviewer version 7. There is way to disable elements like panels... doing instance.disableElements(['nameOfElement']);我正在使用 pdftron webviewer 版本 7。有办法禁用面板等元素...执行instance.disableElements(['nameOfElement']); but I do not know how to disable comments.但我不知道如何禁用评论。 Can sameone help please?请问sameone可以帮忙吗?

You can use the instance.disableReplyForAnnotations API.您可以使用instance.disableReplyForAnnotations API。

// Disable for every annotation
instance.disableReplyForAnnotations((annot) => true)

https://www.pdftron.com/api/web/7.3/WebViewerInstance.html#disableReplyForAnnotations__anchor https://www.pdftron.com/api/web/7.3/WebViewerInstance.html#disableReplyForAnnotations__anchor

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM