DS Server

Javascript: PDFJSSettings.basePath Property

Property

Description

Optional. Directory containing the PDF.js library and worker scripts.

Syntax

<string> PDFJSSettings.basePath

Examples

The following example demonstrates PDFJSSettings.basePath in a practical Document Viewer workflow. Specifies the legacy base path for PDF.js resources.

const pdfjsSettings = {
    basePath: "/lib/pdfjs/"
};
console.log("base path:", pdfjsSettings.basePath);