ComPDFKit Web SDK
    Preparing search index...

    Type Alias WebViewerErrorCode

    WebViewerErrorCode:
        | "INVALID_OPTIONS"
        | "ALREADY_MOUNTED"
        | "UNSUPPORTED_BROWSER"
        | "UI_LOAD_FAILED"
        | "VERSION_MISMATCH"
        | "INIT_FAILED"
        | "DESTROYED"

    Code of a WebViewerError: 'INVALID_OPTIONS' (missing path, element is not an HTMLElement, unsupported mount or invalid URL), 'ALREADY_MOUNTED' (a viewer is already mounted on the element), 'UNSUPPORTED_BROWSER' (no Canvas, WebAssembly or Worker), 'UI_LOAD_FAILED' (the UI page did not load or register; check path / uiPath), 'VERSION_MISMATCH' (the loader and UI versions differ), 'INIT_FAILED' (the UI failed to initialize), 'DESTROYED' (destroyed before it was ready).