Which product are you using?
PDF.js Express Plus
PDF.js Express Version
8.7.0
Detailed description of issue
Got a complain from the user on our platform, who got the error “_super is not defined”, when trying to merge. (save and download on our end)
Expected behaviour
It should simply merge as other pdfs.
Does your issue happen with every document, or just one?
Just one for now, but it could have been affecting multiple users and got our first complain now.
Link to document
{Provide a link to the document in question if possible}
Code snippet
const {
Core: { documentViewer, annotationManager },
} = pdfViewer
const doc = documentViewer.getDocument()
const annotations = await annotationManager.exportAnnotations({
links: false,
widgets: false,
})
const data = await doc.getFileData({})
const blob = new Blob([new Uint8Array(data)], { type: 'application/pdf' })
const pdf = await downloadPdf({ file: blob, annotations })