ComPDFKit Web SDK
    Preparing search index...

    Function searchTextFull

    • Searches the whole document and highlights all results. Resolves when the search finishes (or is cleared). By default (isUserTriggered) the search panel opens and the search term is written into its input. Options: caseSensitive / wholeWord / wildcard / regex.

      Parameters

      • searchValue: string

        The text to search.

      • Optionaloptions: SearchOptions

        Search options.

      • OptionalisUserTriggered: boolean

        Whether to open the search panel and fill its input; true by default.

      • Optionalconfig: { shouldDispatchUIActions?: boolean }

        Extra settings.

        • OptionalshouldDispatchUIActions?: boolean

          When false, the search runs without changing the UI: the search panel and its input are left as they are.

      Returns Promise<void>

      A Promise that resolves when the search finishes.

      await instance.UI.searchTextFull('invoice', { caseSensitive: true });