ComPDFKit Web SDK
    Preparing search index...

    Function closeDocument

    • Closes the document of the active viewer.

      Returns Promise<void>

      A Promise that resolves when the document is closed.

      await instance.UI.closeDocument();