Which product are you using?
PDF.js Express Version
Detailed description of issue
I am making a website of schematics stored as pdf files. Each pdf will be on it’s own page accessible by a UPC label. First page works but when I create another page the document doesn’t load. Error message displayed in console is "A valid license key is required to use the view only build of PDF.js "
Expected behaviour
{To load the pdf file passed into the viewer}
Does your issue happen with every document, or just one?
{With every document but the first one}
Link to document
{Provide a link to the document in question if possible}
Code snippet
{
WebViewer({
path: ‘/test/PDFJSExpress-view-only/lib’, // path to the PDF.js Express’lib’ folder on your server
licenseKey: ‘xxxxxxxxxxxxxx’,
initialDoc: “/test/Model.pdf”}, document.getElementById(‘viewer’))
.then(instance => {
// now you can access APIs through the WebViewer instance
const { Core, UI } = instance;
}