# Pdfjs.express watermark does not disappear

**URL:** <https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198>\
**Category:** Bug Reports\
**Tags:** pdfjs-express\
**Created:** [November 23, 2022, 4:36pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198 "2022-11-23T16:36:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [November 23, 2022, 4:36pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/1 "2022-11-23T16:36:12Z")

</div>

Hi,

How can I remove the “[pdfjs.express](http://pdfjs.express)” watermark from my online application? (screenshot below)  
 ![pdfjsexpress](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/7/76ebd3556f078cc3fe657620d49d450cb7ae17dc.png)

I have a valid license and I initialized it in the WebViewer.  
 ![code](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/9/94632a296d7dc47060ed6b8dd009196f6e5f1c47.png)

However it is still not working. I tried using both the PDF.js Express Plus License Key and the PDF.js Express Viewer key, but none of them seems to work.

Thank you

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [November 23, 2022, 4:52pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/3 "2022-11-23T16:52:00Z")

</div>

Hi @m.curatitoli,

Are you seeing this while running express in localhost?

The watermark will persist until deployed.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [November 24, 2022, 10:50am UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/4 "2022-11-24T10:50:30Z")

</div>

Hi zserviss,

Thank you for the quick response.  
The webapp is NOT running in localhost, it is currently deployed in the corresponding domain.

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [November 25, 2022, 4:45pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/5 "2022-11-25T16:45:21Z")

</div>

Thanks for confirming that you’re not seeing this in localhost.

Here is the guide on adding license keys for visibility: [PDF.js Express Viewer Download & Integration | Documentation](https://pdfjs.express/documentation/get-started/add-license-key)

Are you using a proxy server?

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [November 25, 2022, 5:04pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/6 "2022-11-25T17:04:24Z")

</div>

Hi Zach,  
yes, just to be clear:

1. we see watermark in localhost, but it’s ok
2. we (as in first message) configured the licence key
3. yes, we can say that the application is served using a proxy server  
So it would be a problem?  
It’s not possible think for us to buy another licence only for this reason

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [November 25, 2022, 9:27pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/7 "2022-11-25T21:27:32Z")

</div>

Thank for clarifying, one thing I can suggest is to ensure that the hostname is being forwarded properly.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [November 28, 2022, 1:44pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/8 "2022-11-28T13:44:13Z")

</div>

Hi zach,

This is the current situation:

I obtain the binary file from the webapp back-end, then I transform it to a blob, and then feed it to the Webviewer class:

 ![code2](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/6/6b3b4ee345c6048cc878cf0e0b9f89d12e7d9192.png)

The application is currently hosted in a different location from the purchased domain because it is redirected by a proxy server.

The licenses are used inside the back-end of the application (we used the client and server licenses that we purchased, and they work correctly).

What do we have to change in order to make the watermark disappear without changing the current position of the webapp?

Thanks,  
Mattia

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [November 28, 2022, 8:54pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/9 "2022-11-28T20:54:06Z")

</div>

Since the license keys are attached to the domain, the license needs to be served from that domain. The solution would be ensure that the domain is being forwarded correctly to the proxy server.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [November 29, 2022, 8:38am UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/10 "2022-11-29T08:38:29Z")

</div>

Ehm, maybe it’s not clear.  
Can we setup a call to talk about the problem?

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [November 30, 2022, 4:01pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/11 "2022-11-30T16:01:57Z")

</div>

With a proxy server, the host header needs to be forwarded properly for Express to recognize the correct domain the key is attached to.

Could you try to set your domain to an other one like `mindsphere.io`.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [November 30, 2022, 4:18pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/12 "2022-11-30T16:18:18Z")

</div>

Thanks Zach for the suggestion, but no, it can’t be the solution.  
Because our main domain is [40mat.com](http://40mat.com) for all solutions.  
Only for particular customers our application is hosted as application inside another service (mindsphere), and in that case requests are “proxed” by mindsphere.  
And, as I said before, it’s not possible for us think to buy another licence only for those cases.  
If buy another licence is unique way, we will change software, leaving pdfexpress.

But, I repeat, maybe can be more clear if we setup a call where show to you or other colleagues the situation.

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [December 1, 2022, 6:30pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/13 "2022-12-01T18:30:03Z")

</div>

Unfortunately a call is not possible.

At this point I would recommend creating Viewer keys (free) attached to different domains until the watermark is gone.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [December 19, 2022, 3:59pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/14 "2022-12-19T15:59:40Z")

</div>

Hi zach,

We tried to use different license keys, both for the domain [mindsphere.io](http://mindsphere.io) and for the domain [40mat.com](http://40mat.com), but the watermark still shows.

Can you provide us an example of code where the exact location of each license is inserted?

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [December 19, 2022, 4:20pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/15 "2022-12-19T16:20:38Z")

</div>

Hi @m.curatitoli

Here is the guide for adding your license key: [PDF.js Express Viewer Download & Integration | Documentation](https://pdfjs.express/documentation/get-started-viewer/add-license-key#development)

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [December 20, 2022, 2:21pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/16 "2022-12-20T14:21:42Z")

</div>

Hi zach,

I followed the guide, but the watermark shows always, no matter what viewer key I use.

Can we have a private conversation so that I can show you the exact licenses I am using?

We are quite in a hurry, and if we are not able to complete this procedure we will be forced to switch to a different software.

---

<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:** [December 20, 2022, 6:47pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/17 "2022-12-20T18:47:18Z")

</div>

Hi @m.curatitoli,

Our infrastructure is not designed to work with proxy servers - we require that the license key be used on a single domain and that the requests to our authentication server come from the domain the product is being used on. We enforce this rule because our license agreement states that the product can only be used in a single application, and use of a proxy server could circumvent that.

Since our product cannot work with your infrastructure in this particular instance, we would be happy to refund you the last 2 months for a total of $880 - after the refund, you could continue to use Express as-is or you can cancel your subscription. Our records state that you have successfully been using the product for the last few months, so this seems to be a new issue with a particular implementation.

Another option is to upgrade to our OEM version of PDF.js Express which is built to work on multiple domains. To move forward with this approach please contact our sales team [here](https://www.pdftron.com/form/contact-sales/).

Please let me how you would like to proceed.

Thanks!  
Logan

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [December 21, 2022, 2:01pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/18 "2022-12-21T14:01:27Z")

</div>

Hi @Logan,  
just to be clear: we have an express plus licence associated to .40mat.com domain.  
Our application is a webapp so if we have control of domain, the address for each customer is a specific [something.40mat.com](http://something.40mat.com).  
In addiction our solution can be set up as a “runtime” application in a more complex environment (MindSphere of Siemens) in a similar concept as a mobile app in the apple store.  
In this case the domain of webapp is forced to be [something.mindphsere.io](http://something.mindphsere.io), even if backend is in our server.

So we tried to use a plus licence for .40mat and a viewer for .mindsphere, but as also you said, is not possibile to take out watermark.

You correctly said that in last few months the product was successfully used, yes, but on .40mat. Problem is in other domain .mindphere.

So you suggest only two solution:  
a) buy another plus licence for .mindphere  
b) try to switch to pdftron  
correct?

Second question:  
is we pass to pdftron, we will have to do a lot of changes in out implementation? or is very very similar to [pdfjs.express](http://pdfjs.express)?

---

<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:** [December 21, 2022, 3:06pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/19 "2022-12-21T15:06:31Z")

</div>

Hi there,

Yes, those are the two solutions. We do not have a way to use a single license key on multiple domains.

The PDF.js Express API is the exact same as PDFTron WebViewer - switching libraries should be as simple as swapping out the library and enjoying all the new features. We actually have a guide on it [here](https://pdfjs.express/documentation/learn-more/pdfjs-express-to-pdftron).

Let me know if you have any other questions,

Thanks,  
Logan

---

<div class="post-metadata">

**Author:** ![m.curatitoli](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/m.curatitoli/32/882_2.png) [@m.curatitoli](https://pdfjs.community/u/m.curatitoli)\
**Post date:** [December 21, 2022, 3:19pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/20 "2022-12-21T15:19:48Z")

</div>

Thanks for the clear response.  
And as you know, PDFTron will allow us to use our licence in double domain without duplicate costs?

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [December 22, 2022, 4:58pm UTC](https://pdfjs.community/t/pdfjs-express-watermark-does-not-disappear/2198/21 "2022-12-22T16:58:18Z")

</div>

Hi @m.curatitoli

This can discussed with sales, please fill out this form to get started.

> **[Contact Sales | PDFTron](https://www.pdftron.com/form/contact-sales/)**
>
> World's #1 PDF SDK Library for Web, Mobile, Server, Desktop

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.
