Watermarks still appearing despite license key configuration

Which product are you using?

PDF.js Express Viewer

PDF.js Express Version

8.7.5

Detailed description of issue

Watermarks are still appearing on all PDF documents despite configuring a license key. The viewer loads and functions correctly, but watermarks remain visible on every document. I’ve confirmed through console logs that the license key is being applied to the configuration, but the watermarks persist.

Expected behaviour

Documents should display without any watermarks when a valid license key is provided. Based on the documentation, watermarks should be removed when using a proper license key.

Does your issue happen with every document, or just one?

This happens with every document I’ve tested.

Link to document

https://res.cloudinary.com/dbuzlep6e/image/upload/fl_attachment:pdf2_1/aryeb-gcp/50607/72/DU16G8T1FD93750U.pdf

Code snippet

const config = {
  licenseKey: 'HEGtJ6cOukwjozV7Pwq3',
  path: '/webviewer/lib',
  disabledElements: [
    'ribbons', 
    'toggleNotesButton',
    'searchButton',
    'menuButton',
    'downloadButton',
    'printButton',
    'annotationToolButton'
  ],
  l: 'en'
};

console.log('License Key:', config.licenseKey); // Confirms key is applied
const pdfInstance = await WebViewer(config, viewer.current);

// Load document
if (pdfUrl) {
  pdfInstance.loadDocument(pdfUrl);
}

Additional Debug Info:

  • WebViewer UI version: 8.7.0
  • Core version: 8.7.5
  • Full API: false
  • Package: @pdftron/pdfjs-express-viewer@8.7.5

Thank you for contacting Express Forums.

Watermarks will be persistent in development environments such as localhost. This can be removed in a live site by configuring your domain from the express dashboard.

Please see this guide for more details:

best regards,

Kevin