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

    Interface CPDFEventDataMap

    Event data type mapping for type-safe event listeners

    interface CPDFEventDataMap {
        annotationsCreated: CPDFAnnotation;
        pencilDrawingCompleted: { type: "pencil"; pageIndex: number };
        pencilDrawingDiscarded: { type: "pencil"; pageIndex: number };
        annotationsSelected: CPDFAnnotation;
        annotationsDeselected: CPDFAnnotation | null;
        formFieldsCreated: CPDFWidget;
        formFieldsSelected: CPDFWidget;
        formFieldsDeselected: CPDFWidget | null;
        editorSelectionSelected: CPDFEditArea;
        editorSelectionDeselected: CPDFEditArea | null;
    }
    Index

    Properties

    annotationsCreated: CPDFAnnotation

    Fired when an annotation is created. Returns the created annotation instance.

    pencilDrawingCompleted: { type: "pencil"; pageIndex: number }

    Fired when a pencil drawing is saved. Returns the drawing type and zero-based page index.

    pencilDrawingDiscarded: { type: "pencil"; pageIndex: number }

    Fired when a pencil drawing is discarded. Returns the drawing type and zero-based page index.

    annotationsSelected: CPDFAnnotation

    Fired when an annotation is selected. Returns the selected annotation instance.

    annotationsDeselected: CPDFAnnotation | null

    Fired when an annotation is deselected. Returns the deselected annotation instance or null.

    formFieldsCreated: CPDFWidget

    Fired when a form field is created. Returns the created form widget instance.

    formFieldsSelected: CPDFWidget

    Fired when a form field is selected. Returns the selected form widget instance.

    formFieldsDeselected: CPDFWidget | null

    Fired when a form field is deselected. Returns the deselected form widget instance or null.

    editorSelectionSelected: CPDFEditArea

    Fired when a content editor element is selected. Returns the selected edit area instance (image or text).

    editorSelectionDeselected: CPDFEditArea | null

    Fired when a content editor element is deselected. Returns the deselected edit area instance or null.