DS Server

Javascript: DocumentLoadSettings.pdfjs Property

Property

Description

Optional. Selects and configures the PDF.js provider.

Syntax

<PDFJSSettings> DocumentLoadSettings.pdfjs

Examples

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);