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

    Interface CPDFAnnotationConfig

    CPDFAnnotationConfig

    interface CPDFAnnotationConfig {
        annotationAuthor?: string;
        autoShowSignPicker?: boolean;
        autoShowPicPicker?: boolean;
        autoShowStampPicker?: boolean;
        autoShowLinkDialog?: boolean;
        autoShowNoteEditDialog?: boolean;
        availableTypes?: CPDFAnnotationType[];
        availableTools?: CPDFConfigTool[];
        initAttribute?: CPDFAnnotationAttr;
        interceptNoteAction?: boolean;
        interceptLinkAction?: boolean;
    }
    Index

    Properties

    annotationAuthor?: string

    CPDFViewMode.ANNOTATIONS mode, default author for new annotations.

    autoShowSignPicker?: boolean

    In annotation mode, when tapping the bottom toolbar or calling pdfReaderRef.current?.setAnnotationMode('signature'), whether to automatically show the signature picker dialog. Default: true. If set to false, the signature picker dialog will not be displayed. You can handle signature selection yourself via the onAnnotationCreationPrepared callback. For example, show a custom signature picker, then call controller.prepareNextSignature(signPath) with the chosen signature path; a subsequent tap will place the custom signature into the PDF.

    autoShowPicPicker?: boolean

    In annotation mode, when tapping the bottom toolbar or calling pdfReaderRef.current?.setAnnotationMode('picture'), whether to automatically show the picture picker dialog. Default: true. If set to false, the picture picker dialog will not be displayed. You can handle picture selection yourself via the onAnnotationCreationPrepared callback. For example, show a custom image picker, then call controller.prepareNextPicture(imagePath) with the chosen image path; a subsequent tap will add the custom image to the PDF.

    autoShowStampPicker?: boolean

    In annotation mode, when tapping the bottom toolbar or calling pdfReaderRef.current?.setAnnotationMode('stamp'), whether to automatically show the stamp picker dialog. Default: true. If set to false, the stamp picker dialog will not be displayed. You can handle stamp selection yourself via the onAnnotationCreationPrepared callback. For example, show a custom stamp picker, then call controller.prepareNextStamp(stampPath) with the chosen stamp path; a subsequent tap will add the custom stamp to the PDF.

    autoShowLinkDialog?: boolean

    In annotation mode, when tapping the bottom toolbar or calling pdfReaderRef.current?.setAnnotationMode('link'), whether to automatically show the link settings dialog after the link area is drawn. Default: true. If set to false, the link settings dialog will not be displayed. You can handle link configuration yourself via the onAnnotationCreationPrepared callback. For example, show a custom link dialog, then call controller.prepareNextLink(link) with the configured link; a subsequent tap will add the custom link to the PDF.

    autoShowNoteEditDialog?: boolean

    Whether to automatically show the default edit dialog immediately after creating a Note annotation. Default is true. When false, the default dialog is not shown and onAnnotationCreationPrepared receives the created CPDFNoteAnnotation.

    availableTypes?: CPDFAnnotationType[]

    CPDFViewMode.ANNOTATIONS mode, list of annotation functions shown at the bottom of the view.

    availableTools?: CPDFConfigTool[]

    CPDFViewMode.ANNOTATIONS mode, annotation tools shown at the bottom of the view.

    initAttribute?: CPDFAnnotationAttr

    When adding an annotation, the annotation’s default attributes.

    interceptNoteAction?: boolean

    Intercept click actions on existing note annotations. Default is false (not intercepted). Clicking a note annotation will directly pop up the note content editing dialog. When set to true, the click event is intercepted via [CPDFReaderView.onInterceptAnnotationActionCallback]. Developers can handle custom note content editing dialogs through the callback.

    interceptLinkAction?: boolean

    Intercept click actions on existing link annotations. Default is false (not intercepted). Clicking a link annotation will directly execute the link jump action. When set to true, the click event is intercepted via [CPDFReaderView.onInterceptAnnotationActionCallback]. Developers can handle custom link jump actions through the callback.