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

    Class CPDFFreeTextAnnotation

    CPDFFreeTextAnnotation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Update free text annotation properties with type safety

      Parameters

      • updates: Partial<
            Pick<
                CPDFFreeTextAnnotation,
                "title"
                | "content"
                | "alignment"
                | "textAttribute"
                | "alpha",
            >,
        >

        Partial object containing properties to update

      Returns this

      this instance for chaining

      freeTextAnnotation.update({
      title: 'Updated Title',
      content: 'Updated content',
      alignment: CPDFAlignment.CENTER,
      textAttribute: {
      fontSize: 14,
      fontFamily: 'Times',
      styleName: 'Bold',
      color: '#00FF00'
      },
      alpha: 200
      });
      await document.updateAnnotation(freeTextAnnotation);

    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.

    alignment: CPDFAlignment

    The alignment of the text in the annotation.

    textAttribute: CPDFTextAttribute

    The text attribute of the annotation.

    alpha: number

    The alpha of the annotation