# Javascript: PDFJSSettings.workerSourcePath Property

> Optional. URL of the PDF.js worker script.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 32.2.1
- **Path:** DS Server > Reference > JavaScript API - Document Viewer > Javascript: PDFJSSettings.workerSourcePath Property
- **152 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/pdfjssettings/workersourcepath-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/pdfjssettings/workersourcepath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/pdfjssettings/workersourcepath-property/llms-full.txt

---

### Description

Optional. URL of the PDF.js worker script.

### Syntax

```javascript
<string> PDFJSSettings.workerSourcePath
```

### Examples

The following example demonstrates `pdfjssettings.workerSourcePath` in a practical Document Viewer workflow. Specifies the worker source path.

```javascript
const pdfjsSettings = {
    workerSourcePath: "/lib/pdfjs/pdf.worker.min.js"
};
console.log("worker source path:", pdfjsSettings.workerSourcePath);
```

---

## Nearby

- **Previous:** [Javascript: PDFJSSettings.librarySourcePath Property](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/pdfjssettings/librarysourcepath-property/llms-full.txt)
- **Next:** [SignatureBeforeSubmitCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/signaturebeforesubmitcallback/llms-full.txt)
