ComPDFKit Web SDK
    Preparing search index...

    Function downloadPdf

    • Downloads the document of the active viewer. Rejects with NOT_INITIALIZED when no document is open.

      Parameters

      Returns Promise<void>

      A Promise that resolves when the download starts.

      // Download a copy without annotations
      await instance.UI.downloadPdf({ filename: 'contract.pdf', includeAnnotations: false });