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

    Class CPDFInkAnnotation

    CPDFInkAnnotation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Update ink annotation properties with type safety

      Parameters

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

        Partial object containing properties to update

      Returns this

      this instance for chaining

      inkAnnotation.update({
      title: 'Updated Title',
      content: 'Updated content',
      color: '#FF0000',
      alpha: 200,
      borderWidth: 2,
      });
      await document.updateAnnotation(inkAnnotation);
    • Returns Omit<CPDFInkAnnotation, "createDate" | "update" | "toJSON"> & {
          createDate?: number;
          color: string;
          alpha: number;
          borderWidth: number;
          inkPath: number[][][] | undefined;
      }

    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 ink annotation.

    alpha: number

    The alpha value of the ink annotation.

    borderWidth: number

    The border width of the ink annotation.

    inkPath?: number[][][]

    The ink path data representing the strokes of the ink annotation.