# When creating complex shape annotations, getting the error "\_super is not defined"

**URL:** https://pdfjs.community/t/when-creating-complex-shape-annotations-getting-the-error-super-is-not-defined/3614
**Category:** Technical Support
**Tags:** pdfjs-express
**Created:** [February 28, 2025, 9:34pm UTC](https://pdfjs.community/t/when-creating-complex-shape-annotations-getting-the-error-super-is-not-defined/3614 "2025-02-28T21:34:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![schoolio](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@schoolio](https://pdfjs.community/u/schoolio)
#### Post date: [February 28, 2025, 9:34pm UTC](https://pdfjs.community/t/when-creating-complex-shape-annotations-getting-the-error-super-is-not-defined/3614/1 "2025-02-28T21:34:42Z")

</div>

**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)

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/f/faba2a0a1c320d3553527fe5a86e673b5f280fa3.jpeg)

**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**

```javascript
    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 })

```

---

<div class="post-metadata">

### Author: ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)
#### Post date: [March 3, 2025, 4:20pm UTC](https://pdfjs.community/t/when-creating-complex-shape-annotations-getting-the-error-super-is-not-defined/3614/3 "2025-03-03T16:20:13Z")

</div>

Hi there,

Could you please try updating to version 8.7.5 of pdf.js express to resolve this issue.

best regards,  
Kevin
