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

    Class CPDFAnnotation

    CPDFAnnotation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Type Parameters

      Parameters

      • this: new (params: Partial<T>) => T
      • json: any

      Returns T

    • Type Parameters

      Parameters

      • this: new (params: Partial<T>) => T
      • jsonArray: any[]

      Returns T[]

    • 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);
    • Returns Omit<CPDFAnnotation, "createDate" | "update" | "toJSON"> & {
          createDate?: number;
      }

    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.