ComPDFKit Web SDK
    Preparing search index...

    Function loadCompareDocument

    • Loads a file into the "old" or "new" pane of the compare page (flag is 'old' or 'new'). Switches to the compare group first when needed. Does nothing without a file or with any other flag. A failed load does not reject (the pane quietly resets, as with drag and drop; an invalid license is reported through LOAD_ERROR).

      Parameters

      • file: DocumentSource | Document

        The document source or a loaded Document.

      • filename: string | undefined

        The file name to show.

      • password: string | undefined

        The document password.

      • flag: "old" | "new" | undefined

        'old' or 'new'.

      Returns Promise<void>

      A Promise that resolves when loading finishes.