Javascript: PDFJSSettings.basePath Property
Description
Optional. Directory containing the PDF.js library and worker scripts.
Syntax
<string> PDFJSSettings.basePathExamples
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);