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

    Class CPDFNoteAnnotation

    CPDFNoteAnnotation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Update note annotation properties with type safety

      Parameters

      • updates: Partial<Pick<CPDFNoteAnnotation, "title" | "content" | "color" | "alpha">>

        Partial object containing properties to update

      Returns this

      this instance for chaining

      noteAnnotation.update({
      title: 'Updated Title',
      content: 'Updated content',
      color: '#FF0000',
      alpha: 200
      });
      await document.updateAnnotation(noteAnnotation);
    • Returns Omit<CPDFNoteAnnotation, "createDate" | "update" | "toJSON"> & {
          createDate?: number;
          color: `#${string}`;
          alpha: ColorAlpha;
      }

    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.

    color: `#${string}`

    The color of the annotation

    alpha: ColorAlpha

    The alpha of the annotation