in production, when I load a file with the PDF Express Viewer, I have this error message
"A valid license key is required to use the view only build of PDF.js "
However, I did create a license key and used it as an option parameter. It even perfectly works in localhost :
From my account, I have created 2 keys :
one for the “localhost:3000” domain : it works.
one for the domain capla360.com : I have the error.
I’m using a React app and used .env to set the 2 keys for the 2 different envs. I can’t figure out what’s going wrong…
I checked out and tested your license key and did not find any issues. Can you confirm that process.env.REACT_APP_PDFTRON_EXPRESS_KEY is being set correctly? You should see a request to auth.pdfjs.express in the network tab - can you send me a screenshot of that via DM?
Hi @Logan , thanks for you quick answer. I have a successful request to auth.pdfjs.express with the key used in production env.
More info about the issue :
I’m loading the document from a dataURL. It’s working find in localhost even if I have the following error message in the console.
Hi @Logan , can you tell me exactly how I can DM you ? I can’t find any envelop clicking on the avatar so I tried to pass by the moderator section. I got a “no permission” error :