Cannot remove watermark, even with license information

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version
8.1.1

Detailed description of issue
I have integrated pdfjs-express-viewer to a VueJs project. I have created a free license on the web page, and added it to my WebViewer component, like this:

WebViewer({
        path: this.path,
        initialDoc: this.url,
        licenseKey: 'key_goes_here'
      }, this.$refs.viewer).then((instance) => {

However, when the site is deployed to our internet site (whose DNS domain name is mapped in the license key), the ā€œpdfjs.expressā€ watermark keeps being displayed.

Expected behaviour
Watermark should be removed from the rendered PDF.

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

Link to document
Happens on any PDF document

Code snippet
{Provide a relevant code snippet}

Hello, Iā€™m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

nvm, problem solved.

The problem was that the file copy-webviewer-files.js was copying the library pdfjsexpress, instead of pdfjsexpress-viewer (a carry forward from bootstrapping the project from a sample). So the following line of code fixed the issue:

await fs.copy('./node_modules/@pdftron/pdfjs-express-viewer/public', './public/lib/');

In case someone stumbles into the same issue.

1 Like

Thanks for the info!

If you run into any further issues, please get in touch :slight_smile:

Logan