TX Text Control .NET Server

BasePath Property

PropertyDeprecated
Obsolete
Use WorkerSourcePath and LibrarySourcePath instead.
Namespace
TXTextControl.Web.MVC.DocumentViewer
Package
TXTextControl.Web.DocumentViewer as TXTextControl.Web.MVC.DocumentViewer.dll from nuget.org, the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.Web.DocumentViewer.Classic as TXTextControl.Web.MVC.DocumentViewer.dll

Description

Specifies base path for including the sources.

Syntax

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

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.

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