Is there a way to disable annotation tools and only allow comments on existing annotations

Product: PDFTRON webviewer

Product Version: 8.0.0

Please give a brief summary of your issue:
I am trying to create a versioning system for PDFs, where if in “review” mode and a PDF has annotations, a user should only be able to comment on existing annotations but not create any further annotations.

Please describe your issue and provide steps to reproduce it:
n/a

Please provide a link to a minimal sample where the issue is reproducible:
n/a

One way is to use disableElements

For example:

instance.disableElements(['toolsHeader', 'toolbarGroup-Annotate', 'toolbarGroup-Shapes', 'toolbarGroup-Insert', 'toolbarGroup-Measure'])

You can read this for more detail: https://www.pdftron.com/documentation/web/guides/hiding-elements/#enabling-disabling-elements-programmatically

Oscar