# Watermark not disappearing despite valid license

**URL:** <https://pdfjs.community/t/watermark-not-disappearing-despite-valid-license/1612>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [April 20, 2022, 6:11am UTC](https://pdfjs.community/t/watermark-not-disappearing-despite-valid-license/1612 "2022-04-20T06:11:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![davide.desantis](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@davide.desantis](https://pdfjs.community/u/davide.desantis)\
**Post date:** [April 20, 2022, 6:11am UTC](https://pdfjs.community/t/watermark-not-disappearing-despite-valid-license/1612/1 "2022-04-20T06:11:59Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Version**  
8.4.0

**Detailed description of issue**  
Even though I have entered the correct key, the watermark is still displayed when running on the server.  
It’s an angular application. I tried using @pdftron/pdfjs-express as well as @pdftron/pdfjs-express-viewer. In both cases, the watermark never disappears.  
However, there are some differences.

**@pdftron/pdfjs-express:**  
locally: PDF is displayed, watermark is displayed, no console output regarding license  
server: PDF is displayed, watermark is displayed

**@pdftron/pdfjs-express-viewer:**  
locally: PDF is displayed, watermark is displayed, console output says the license is valid for the correct domain  
server: PDF is not displayed (never stops loading), console shows error:

 ![2022-04-20 08_09_49-Innolink — Mozilla Firefox (Private Browsing)](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/85fad39647f5d91d683f1bae19b1df86d3e27e75.png)

**Expected behaviour**  
Watermark should disappear on server

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

**Link to document**  
n/a

**Code snippet**

```javascript
@ViewChild('viewer', { static: false }) public viewer: ElementRef;

public ngAfterViewInit(): void {
    this.fileDownloadService.downloadBlob(this.fileDownloadService.downloadDocumentPath.replace('{documentId}', this.documentId))
    .subscribe((result: BlobWithFilename) => {
      WebViewer({
        licenseKey: 'MY-KEY',
        path: '../assets/pdfjs-express-viewer',
        disableLogs: true},
        this.viewer.nativeElement)
        .then(instance => {
          // https://pdfjs.express/documentation/ui-customization/hiding-elements
          instance.UI.loadDocument(result.blob, { filename: result.filename });
          instance.UI.disableFeatures([instance.UI.Feature.Print]);
          instance.UI.disableFeatures([instance.UI.Feature.TextSelection]);
          instance.UI.disableFeatures([instance.UI.Feature.Annotations]);
          instance.UI.disableElements(['panToolButton']);
          instance.UI.disableElements(['selectToolButton']);
          instance.UI.disableElements(['toolsHeader']);
      });
    }, (error) => {
      throw error;
    });
  }

```

---

_[View the full topic](https://pdfjs.community/t/watermark-not-disappearing-despite-valid-license/1612)._
