configuration property

PdfJsConfiguration? configuration
getter/setter pair

The current configuration. null to use the default.

To customze the pdf.js download URLs, set this before using any APIs.:

PdfJsConfiguration.configuration = const PdfJsConfiguration(
  pdfJsSrc: 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.mjs',
  workerSrc: 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js',
  cMapUrl: 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/cmaps/',
);

Implementation

static PdfJsConfiguration? configuration;