# PDFJSSettings.BasePath Property

> Specifies base path for including the sources.

> **Note:** This is deprecated and should not be used in new work.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Obsolete:** Use WorkerSourcePath and LibrarySourcePath instead.
- **Namespace:** `TXTextControl.Web.MVC.DocumentViewer`
- **Package:** `TXTextControl.Web.DocumentViewer` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.Web.DocumentViewer.Classic` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC.DocumentViewer > PDFJSSettings.BasePath Property
- **349 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/pdfjssettings/basepath-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/pdfjssettings/basepath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/pdfjssettings/basepath-property/llms-full.txt

---

### Description

Specifies base path for including the sources.

### Syntax

```csharp
[Obsolete("Use WorkerSourcePath and LibrarySourcePath instead.")]
public string BasePath { get; set; }
```

```vbnet
<Obsolete("Use WorkerSourcePath and LibrarySourcePath instead.")>
Public Property BasePath As String
```

### Examples

`PDFJSSettings.BasePath` is obsolete in the current Document Viewer package. The following example configures the PDF.js library and worker locations with the supported replacement properties.

```csharp
pDFJSSettings.LibrarySourcePath = @"wwwroot\pdfjs\pdf.min.mjs";
pDFJSSettings.WorkerSourcePath = @"wwwroot\pdfjs\pdf.worker.min.mjs";
```

```vbnet
pDFJSSettings.LibrarySourcePath = "wwwroot\pdfjs\pdf.min.mjs"
pDFJSSettings.WorkerSourcePath = "wwwroot\pdfjs\pdf.worker.min.mjs"
```

---

## Nearby

- **Previous:** [PDFJSSettings Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/pdfjssettings/llms-full.txt)
- **Next:** [PDFJSSettings Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/pdfjssettings/constructor/llms-full.txt)
