ComPDF React Native - v3.0.0
    Preparing search index...

    Class CPDFSoundAnnotation

    CPDFSoundAnnotation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Update annotation properties in a type-safe way

      Parameters

      • updates: Partial<Omit<this, "_viewerRef" | "page" | "uuid" | "createDate">>

        Partial object containing properties to update

      Returns this

      this instance for chaining

      annotation.update({ title: 'New Title', content: 'New Content' });
      await document.updateAnnotation(annotation);

    Properties

    Annotation type identifier

    title: string

    Annotation title

    page: number

    The page number where the note is located

    content: string

    annotation content.

    uuid: string

    annotation uuid.

    createDate: Date | null = null

    annotation create date.

    markState: CPDFAnnotationMarkState = CPDFAnnotationMarkState.UNMARKED

    annotation mark state.

    reviewState: CPDFAnnotationReviewState = CPDFAnnotationReviewState.NONE

    annotation review state.

    rect: CPDFRectF | null = null

    annotation rect.

    soundPath: string

    Path to the sound file representing the sound annotation.