PDF.js Express Version
7.1.0
Detailed description of issue
After updating to 7.1.0 I am getting these issues, I was using 7.0.1 before.
Expected behaviour
To load the same way before 7.1.0
I reverted back to 7.0.1 and it is now successfully loading.
Code snippet
Im just using the default getting started snippet
WebViewer({
path: 'Content/Imports/PDFExpress/lib', // path to the PDF.js Express'lib' folder on your server
licenseKey: 'Insert commercial license key here after purchase',
initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo.pdf',
// initialDoc: '/path/to/my/file.pdf', // You can also use documents on your server
}, document.getElementById('viewer'))
.then(instance => {
const docViewer = instance.docViewer;
const annotManager = instance.annotManager;
// call methods from instance, docViewer and annotManager as needed
// you can also access major namespaces from the instance as follows:
// const Tools = instance.Tools;
// const Annotations = instance.Annotations;
docViewer.on('documentLoaded', () => {
// call methods relating to the loaded document
});
});