Javascript: PDFJSSettings.workerSourcePath Property
Description
Optional. URL of the PDF.js worker script.
Syntax
<string> PDFJSSettings.workerSourcePathExamples
The following example demonstrates pdfjssettings.workerSourcePath in a practical Document Viewer workflow. Specifies the worker source path.
const pdfjsSettings = {
workerSourcePath: "/lib/pdfjs/pdf.worker.min.js"
};
console.log("worker source path:", pdfjsSettings.workerSourcePath);