# Watermark still visible with license

**URL:** <https://pdfjs.community/t/watermark-still-visible-with-license/3431>\
**Category:** Technical Support\
**Created:** [September 3, 2024, 5:52pm UTC](https://pdfjs.community/t/watermark-still-visible-with-license/3431 "2024-09-03T17:52:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![darren](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@darren](https://pdfjs.community/u/darren)\
**Post date:** [September 3, 2024, 5:52pm UTC](https://pdfjs.community/t/watermark-still-visible-with-license/3431/1 "2024-09-03T17:52:21Z")

</div>

**Which product are you using?**

PDF.js Express Viewer

**PDF.js Express Version**

PDF.js Express Viewer 8.7.4 via NPM

**Detailed description of issue**

We’re using our license key on app.mega.hr. The root domain for the key is ‘mega.hr’, yet we are still seeing the watermark.

We are using pdftron/pdfjs-express-viewer from NPM.

The code is as follows:

**Expected behaviour**  
Expected behavior would not have the watermark

 ![Screenshot 2024-09-03 at 1.50.24 PM](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/4/40bcddeb22c24e2d445e4435f0910a4337a1b55a.png)

**Does your issue happen with every document, or just one?**  
All documents.

**Code snippet**  
const WebViewer = (await import(‘@pdftron/pdfjs-express-viewer’)).default

```
WebViewer({
    path: '/libs/pdf-express',
    initialDoc: url,
    licenseKey: "<Key Removed>",
    disabledElements: [
      'toggleNotesButton',
      'toolsHeader',
      'selectToolButton',
      'ribbons'
    ]
  }, ele).then(instance => {
    
    dispatch('ready', {
        instance
    })
  }
)

```

})

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [September 4, 2024, 3:13pm UTC](https://pdfjs.community/t/watermark-still-visible-with-license/3431/3 "2024-09-04T15:13:22Z")

</div>

Hi there,

Registering the top level domain on your pdf.js express dashboard should allow subdomains. Please check if there are any failed network requests that may be blocking your license key.

best regards,  
Kevin Kim

---

<div class="post-metadata">

**Author:** ![darren](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@darren](https://pdfjs.community/u/darren)\
**Post date:** [September 4, 2024, 6:48pm UTC](https://pdfjs.community/t/watermark-still-visible-with-license/3431/4 "2024-09-04T18:48:44Z")

</div>

As far as I can tell the requests look fine:

 ![Screenshot 2024-09-04 at 2.47.09 PM](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/2/248d2bfa4363eefb84ba254100413076836ed6f2.png)

The response to the key request is:

{“key”:“Â¹»¼ÂÙãçÕØéàßýáàûëÝØõßÝÉë”}

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [September 5, 2024, 2:21pm UTC](https://pdfjs.community/t/watermark-still-visible-with-license/3431/5 "2024-09-05T14:21:05Z")

</div>

It looks like the request is going through, is there any messages in the console regarding a license issue? Could you try re-creating the license key?

---

<div class="post-metadata">

**Author:** ![darren](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@darren](https://pdfjs.community/u/darren)\
**Post date:** [September 7, 2024, 7:50pm UTC](https://pdfjs.community/t/watermark-still-visible-with-license/3431/6 "2024-09-07T19:50:07Z")

</div>

Hi. Just generated a new one today and retested.

Same result. What’s next?

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [September 9, 2024, 2:54pm UTC](https://pdfjs.community/t/watermark-still-visible-with-license/3431/7 "2024-09-09T14:54:51Z")

</div>

Hi there,

Did you try setting both your domain to “app.mega.hr” and "mega.hr?  
Are you getting any console error messages?
