# Cannot remove watermark, even with license information

**URL:** <https://pdfjs.community/t/cannot-remove-watermark-even-with-license-information/1125>\
**Category:** Technical Support\
**Created:** [October 31, 2021, 1:30pm UTC](https://pdfjs.community/t/cannot-remove-watermark-even-with-license-information/1125 "2021-10-31T13:30:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user13](https://avatars.discourse-cdn.com/v4/letter/u/a88e57/32.png) [@user13](https://pdfjs.community/u/user13)\
**Post date:** [October 31, 2021, 1:30pm UTC](https://pdfjs.community/t/cannot-remove-watermark-even-with-license-information/1125/1 "2021-10-31T13:30:27Z")

</div>

**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:

```javascript
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](http://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}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [October 31, 2021, 1:30pm UTC](https://pdfjs.community/t/cannot-remove-watermark-even-with-license-information/1125/3 "2021-10-31T13:30:32Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

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

Guides:
- [Adding your license key](https://pdfjs.express/documentation/get-started-viewer/add-license-key)
- [Integrating PDF.js Express Viewer with NPM](https://pdfjs.express/documentation/get-started-viewer/npm)
- [Integrating PDF.js Express Viewer into a Vue.js project - Sample overview](https://pdfjs.express/documentation/get-started-viewer/vue#sample-overview)

APIs:
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [Core](https://pdfjs.express/api/Core.html#__anchor)
- [Core.Document - setWatermark(options)](https://pdfjs.express/api/Core.Document.html#setWatermark__anchor)

Forums:
- [Can I remove pdfjs.express watermark from viewer?](https://pdfjs.community/t/can-i-remove-pdfjs-express-watermark-from-viewer/1073/4)
- [Pdjs express watermark appearing on registered domain even after adding license key](https://pdfjs.community/t/pdjs-express-watermark-appearing-on-registered-domain-even-after-adding-license-key/453/1)
- [Is there any way to remove watermarks in development mode?](https://pdfjs.community/t/is-there-any-way-to-remove-watermarks-in-development-mode/443/1)

---

<div class="post-metadata">

**Author:** ![user13](https://avatars.discourse-cdn.com/v4/letter/u/a88e57/32.png) [@user13](https://pdfjs.community/u/user13)\
**Post date:** [October 31, 2021, 2:04pm UTC](https://pdfjs.community/t/cannot-remove-watermark-even-with-license-information/1125/4 "2021-10-31T14:04:53Z")

</div>

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:

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

```

In case someone stumbles into the same issue.

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [November 1, 2021, 4:52pm UTC](https://pdfjs.community/t/cannot-remove-watermark-even-with-license-information/1125/5 "2021-11-01T16:52:08Z")

</div>

Thanks for the info!

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

Logan

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [November 1, 2021, 4:52pm UTC](https://pdfjs.community/t/cannot-remove-watermark-even-with-license-information/1125/6 "2021-11-01T16:52:11Z")

</div>


