PDF Web Viewer
    Preparing search index...

    Function resolveWorkerPath

    • Resolves a worker directory path to the full path of the hashed worker JS file If no path is provided, auto-detects the worker location

      Parameters

      • OptionalworkerDir: string

        Optional directory containing the worker files (e.g., '/pwv-workers' or './pwv-workers') OR a direct path to a worker file (e.g., '/node_modules/@avanquest/pdfworker-dev/pdfworker.js')

      Returns Promise<string>

      Promise resolving to the full path to the worker JS file