ComPDFKit Web SDK
    Preparing search index...

    Function searchAndReplaceText

    • Finds and replaces in the text boxes of these pages (all pages by default) and returns the number of replacements; one call is one history entry. Enters content editing mode first when not in it. The box's full text is mapped character by character to engine positions in the Worker; replacements within a box go from back to front so earlier positions are unaffected.

      Parameters

      Returns Promise<number>