Which product are you using?
PDF.js Express Viewer
PDF.js Express Version
8.7.4
Detailed description of issue
I upgraded our version of Express Viewer to 8.7.4 and although I have a license key for the domain trailblazertech.com it is still showing the watermarks on the website path https://acme.uat.app.trailblazertech.com which should match the license domain.
Thank you for reaching out to pdf.js express forums,
Is your domain registered exactly as " trailblazertech.com"?
If so, is the network request connecting to the pdf.js express server? Is your licenseKey correctly being set (i.e. is the environment variable set correctly)?
Here is a forum post for reference:
I checked the network call to https://auth.pdfjs.express/?key=xxxxx and the key value matches the key I see in my PDF Js Express admin listed for this domain.
The network auth call returns a 200 response. The response looks to be some binary value so I can’t tell exactly what its content is.
I registered this domain a while back on an older version. Is it possible I need to delete the key and create a new one? I’m at a loss for what could be missing here.
What I don’t understand is that in past product versions (8.4.1 for example) if I used a license key that didn’t match the domain I would get a response in the console like this…
PDFJS.express: A valid license key is required to use the view only build of PDF.js Express. Get your free license key at PDF.js Express
However I’m not getting that message just the overlay graphic with pdfjs express in corners and middle.
Can you tell me what causes that watermark to show up and maybe I can check those items off to see where the disconnect is?
It looks like the request to the authentication server is being made correctly using the key. However the subdomain might not be registering correctly.
Please see this forum post for more details:
Thanks for that link. Here are the following items I’ve tried to confirm.
I downloaded a fresh zip of the Webviewer Express View Only just to start clean. I took the contents of the lib folder from that zip and put it in a folder within my Angular application. I included that path in my assets angular.json file. I also included the webviewer.min.js in the scripts property my my angular.json file.
Related to the reference link you mentioned last… I am locally using a root URL for my website of https://acme.app.local. I have added both app.local and acme.app.local to my /etc/hosts files on my Mac.
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
127.0.0.1 app.local
127.0.0.1 acme.app.local
I created a new license key just to be safe for app.local.
My network tab shows the auth call with a 200 OK response.
There’s some additional event that looks to be posting to pdfjs after the console error and interestingly there’s no license key. However the response is a 200 OK. I don’t know if this is pertinent information or not.
Can you loop in Logan Bittner who in the other thread said he got a local dev custom URL to work? Or is there a test I can run locally to mimic how the local site domain is being evaluated? At this point based on that other thread it seems that a local dev domain other than localhost should work (at least according to Logan).
Please try using your old API key or change the key from April 22, 2022 key to be a different domain.
Please try also removing the -new from the new domain.