TX Text Control .NET Server

Javascript: PDFJSSettings.workerSourcePath Property

Property|Introduced in 32.2.1

Description

Optional. URL of the PDF.js worker script.

Syntax

<string> PDFJSSettings.workerSourcePath

Examples

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);