# PDFJSSettings Class

> PDF.js source locations used when loading a document with the PDF.js provider. Either `basePath` or both explicit source paths must be supplied.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Path:** TX Text Control .NET Server > Reference > JavaScript API - Document Viewer > PDFJSSettings Class
- **355 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/pdfjssettings/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/pdfjssettings/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/pdfjssettings/llms-full.txt

---

### Description

PDF.js source locations used when loading a document with the PDF.js provider. Either `basePath` or both explicit source paths must be supplied.

### Syntax

```javascript
PDFJSSettings
```

### Examples

The following example demonstrates `PDFJSSettings` in a practical Document Viewer workflow. Configures the PDF.js library paths used by the Document Viewer.

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

---

## In This Section

- [Javascript: PDFJSSettings.basePath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/pdfjssettings/basepath-property/llms-full.txt): Optional. Directory containing the PDF.js library and worker scripts.
- [Javascript: PDFJSSettings.librarySourcePath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/pdfjssettings/librarysourcepath-property/llms-full.txt): Optional. URL of the PDF.js library script.
- [Javascript: PDFJSSettings.workerSourcePath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/pdfjssettings/workersourcepath-property/llms-full.txt): Optional. URL of the PDF.js worker script.

---

## Nearby

- **Previous:** [Javascript: OAuthSettings.accessToken Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/oauthsettings/accesstoken-property/llms-full.txt)
- **Next:** [Javascript: PDFJSSettings.basePath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/pdfjssettings/basepath-property/llms-full.txt)
