Getting a Webviewer instance and changing options

Hi,

I have the following related questions:

  1. How do I get to the instance of the webviewer that I just created by passing in the options and then setting up the events to load the document, save, etc?

  2. I would like to changethe options I had sent to that instance. EG: There is new custom button created where one can lock the document (set to read only). Initially, the “IsReadonly” option set depending on the status. When user clicks on that button, the status is changed. How do I do that?

Hello DaveT,

  1. You can get the instance anywhere by doing: Apryse WebViewer Global
    window.WebViewer.getInstance()

  2. Instead of setting it in the constructor, you would want to set it with our APIs: Apryse WebViewer Class: AnnotationManager
    instance.Core.annotationManager. enableReadOnlyMode()

Let me know if this works for you.

Best regards,
Tyler