I have a question, about link annotation readonly

WebViewer Version: 10.1.0

Do you have an issue with a specific file(s)?
No.

Can you reproduce using one of our samples or online demos?
Yes.

Are you using the WebViewer server?
No.

Does the issue only happen on certain browsers?
No.

Is your issue related to a front-end framework?
No.

Is your issue related to annotations?
Yes.

Please give a brief summary of your issue:
(Think of this as an email subject)
i have a question, about link annotation readonly.

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Readonly link annotation can be unlinked.
Is this the spec?
image

expect : unlink doesn’t work in readonly.

Please provide a link to a minimal sample where the issue is reproducible:
nothing. question only.

Best Regards.

Hi there,

Thanks for reaching out to WebViewer Support!

If the annotation is set to read-only, it cant be modified. This is the expected behavior.

Here is documentation on read-only mode.

Please let me know if you have any additional questions related to this.

Regards,
Aaseef Shaikh

Hi,
Thank you for reply.

Core.annotationManager.enableReadonlyMode() is unlink doesn’t work.
But, Core.Annotations.Annotation.ReadOnly is unlink does work.
https://docs.apryse.com/api/web/Core.Annotations.Annotation.html#ReadOnly__anchor

I tried this, can be unlinked.

WebViewer(...)
  .then(instance => {
    const { annotationManager } = instance.Core;

    annotationManager.addEventListener(
      'annotationChanged',
      (
        annotations: Core.Annotations.Annotation[],
        action: string,
        info: Core.AnnotationManager.AnnotationChangedInfoObject
      ): void => {
        annotations.forEach((annot) => (annot.ReadOnly = true));
      });
    });
  });

Best Regards.

Hi,

I have checked with my colleague, and the current behaviour is expected because we’re not actually modifying the annotation. When you link you are just adding a link that references the original annotation. Similarly you are allowed to add a reply to readonly annotations.

Thanks.

Hi,

Thank you, Iunderstand.

Best Regards.