ComPDFKit Web SDK
    Preparing search index...

    Function startTextComparison

    • Compares the text of the two panes page by page and highlights the differences on both sides. Requires enterMultiViewerMode first; otherwise logs an error and returns. If the two documents are not both loaded yet, waits until they are.

      Returns Promise<void>

      A Promise that resolves once the comparison is shown.

      await instance.UI.enterMultiViewerMode();
      await instance.UI.loadDocument('/files/contract-v1.pdf', {}, 1);
      await instance.UI.loadDocument('/files/contract-v2.pdf', {}, 2);
      await instance.UI.startTextComparison();