PDF Web Viewer
    Preparing search index...

    SDK Configuration

    When initializing the SDK using PdfSdk.initialize, you can provide the following configuration options.

    await PdfSdk.initialize({
    license: 'YOUR_LICENSE_KEY',
    basePath: '/assets',
    // ... other options
    });
    Option Type Description Required
    license string Your license key Yes
    basePath string Base path for the pwv-workers/pwv-fonts asset folders. Browser: a URL prefix. Node.js: an absolute filesystem path to the parent directory containing those two subfolders. No
    logging boolean Enable debug logging No