Skip to content
On this page

How to Run a Demo

ComPDFKit Web Viewer provides one demo for developers to learn how to call the SDK on the Web. You can find them in the ComPDFKit-Web-Viewer-Demo folder. This guide will show you how to run it in VSCode.

  1. Open the Demo project in VSCode.

  2. Install all dependencies that are needed in the Demo.

    javascript
    npm install
  3. Run ComPDFKit Web Viewer Demo in the development environment

    javascript
    npm run dev
  4. PDF will be opened and displayed.