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

    Class CPDFLinkAnnotation

    CPDFLinkAnnotation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Update link annotation properties with type safety

      Parameters

      • updates: Partial<Pick<CPDFLinkAnnotation, "title" | "content" | "action">>

        Partial object containing properties to update

      Returns this

      this instance for chaining

      linkAnnotation.update({
      title: 'Updated Title',
      content: 'Updated content',
      action: CPDFGoToAction.toPage(2)
      });
      await document.updateAnnotation(linkAnnotation);

    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.

    action?: CPDFAction

    The action associated with the link annotation.