ComPDFKit Web SDK
    Preparing search index...

    Function getAnnotationReadState

    • Gets the read state of an annotation. Throws an Error when the annotation is not found. Returns true for read annotations.

      Parameters

      • annotationId: string

        The annotation id.

      Returns boolean | undefined

      true when read.

      const [annotation] = instance.Core.annotationManager.getSelectedAnnotations();
      const isRead = instance.UI.getAnnotationReadState(annotation.Id);