Javascript: DocumentLoadSettings.pdfjs Property
Description
Optional. Selects and configures the PDF.js provider.
Syntax
<PDFJSSettings> DocumentLoadSettings.pdfjsExamples
The following example demonstrates documentloadsettings.pdfs in a practical Document Viewer workflow. Specifies the settings for using Mozilla's PDFJS.
const documentLoadSettings = {
pdfs: { workerSourcePath: "/lib/pdfjs/pdf.worker.min.js", librarySourcePath: "/lib/pdfjs/pdf.min.js" }
};
console.log("pdfs:", documentLoadSettings.pdfs);