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

    Class CPDFImageAnnotation

    CPDFImageAnnotation

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • 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);
    • Parameters

      • params: {
            page: number;
            rect: CPDFRectF;
            base64: string;
            title?: string;
            content?: string;
            createDate?: Date;
            uuid?: string;
        }

      Returns CPDFImageAnnotation

    • Parameters

      • params: {
            page: number;
            rect: CPDFRectF;
            dataUri: string;
            title?: string;
            content?: string;
            createDate?: Date;
            uuid?: string;
        }

      Returns CPDFImageAnnotation

    • Parameters

      • params: {
            page: number;
            rect: CPDFRectF;
            filePath: string;
            title?: string;
            content?: string;
            createDate?: Date;
            uuid?: string;
        }

      Returns CPDFImageAnnotation

    • Parameters

      • params: {
            page: number;
            rect: CPDFRectF;
            assetPath: string;
            title?: string;
            content?: string;
            createDate?: Date;
            uuid?: string;
        }

      Returns CPDFImageAnnotation

    • Parameters

      • params: {
            page: number;
            rect: CPDFRectF;
            uri: string;
            title?: string;
            content?: string;
            createDate?: Date;
            uuid?: string;
        }

      Returns CPDFImageAnnotation

    • Returns Omit<CPDFImageAnnotation, "createDate" | "update" | "toJSON"> & {
          createDate?: number;
          image: string | undefined;
          imageData: Record<string, any> | undefined;
          stampType: string;
      }

    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.

    image?: string

    Legacy Base64 encoded image string representing the image annotation.

    imageData?: CPDFImageData

    Preferred image source descriptor.