Which product are you using?
PDF.js Express Plus
PDF.js Express Version
8.7.0
Detailed description of issue
When I create an annotation other than free-hand or rectangle, for example a circle, I get an error in the console.
webviewer-core.min.js:709 Uncaught (in promise) ReferenceError: _super is not defined
at Ea.Dh (webviewer-core.min.js:709:136)
at gh.kga (webviewer-core.min.js:460:136)
at ih (webviewer-core.min.js:13:46)
at gh.lx (webviewer-core.min.js:11:167)
at kh.next (webviewer-core.min.js:13:327)
at ua (webviewer-core.min.js:14:43)
Expected behaviour
It suppose to export my annotations in XML which I then save in my database
Does your issue happen with every document, or just one?
Every document
Link to document
{Provide a link to the document in question if possible}
Code snippet
// EVENT annotation changed ----------------------------------
annotationManager.addEventListener(
"annotationChanged",
(_annotations, _action, { imported }) => {
if (imported) {
return;
}
this.showSavingAlert();
async function save(saveAnnotations) {
const XMLAnnotations = await annotationManager.exportAnnotations(); // Break at this line
await saveAnnotations(XMLAnnotations);
}
save(this.saveAnnotations);
},
);