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

    Class CPDFCircleAnnotation

    CPDFCircleAnnotation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Update square annotation properties with type safety

      Parameters

      • updates: Partial<
            Pick<
                CPDFSquareAnnotation,
                | "title"
                | "content"
                | "borderColor"
                | "borderAlpha"
                | "fillColor"
                | "fillAlpha"
                | "borderWidth"
                | "bordEffectType"
                | "dashGap",
            >,
        >

        Partial object containing properties to update

      Returns this

      this instance for chaining

      squareAnnotation.update({
      title: 'Updated Title',
      content: 'Updated content',
      borderColor: '#FF0000',
      borderAlpha: 200,
      fillColor: '#00FF00',
      fillAlpha: 150,
      borderWidth: 2,
      bordEffectType: CPDFBorderEffectType.DASHED,
      dashGap: 4
      });
      await document.updateAnnotation(squareAnnotation);
    • Returns Omit<CPDFCircleAnnotation, "createDate" | "update" | "toJSON"> & {
          createDate?: number;
          borderColor: string;
          borderAlpha: number;
          fillColor: string;
          fillAlpha: number;
          borderWidth: number;
          bordEffectType: string;
          dashGap: 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.

    borderColor: string

    The color of the border.

    borderAlpha: number

    The alpha of the border.

    fillColor: string

    The color of the fill.

    fillAlpha: number

    The alpha of the fill.

    borderWidth: number

    The width of the border.

    bordEffectType: string

    The border effect type.

    dashGap: number

    The dash gap for dashed border effect.