ComPDFKit Web SDK
    Preparing search index...

    Interface SearchAndReplaceOptions

    Options for searchAndReplaceText.

    interface SearchAndReplaceOptions {
        documentViewer: DocumentViewer;
        matchCase?: boolean;
        pageNumbers?: number[];
        replaceWith: string;
        searchText: string;
        wholeWords?: boolean;
    }
    Index
    documentViewer: DocumentViewer

    The viewer whose document to search.

    matchCase?: boolean

    Whether matching is case-sensitive. Defaults to false.

    pageNumbers?: number[]

    All pages by default.

    replaceWith: string

    Replacement text.

    searchText: string

    Text to find.

    wholeWords?: boolean

    Whether only whole words match. Defaults to false.