# Cannot save/download documents containing shapes in 8.7.0 (reproducible in the demo)

**URL:** https://pdfjs.community/t/cannot-save-download-documents-containing-shapes-in-8-7-0-reproducible-in-the-demo/2236
**Category:** Bug Reports
**Tags:** pdfjs-express
**Created:** [December 14, 2022, 6:35pm UTC](https://pdfjs.community/t/cannot-save-download-documents-containing-shapes-in-8-7-0-reproducible-in-the-demo/2236 "2022-12-14T18:35:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![r.ewen](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@r.ewen](https://pdfjs.community/u/r.ewen)
#### Post date: [December 14, 2022, 6:35pm UTC](https://pdfjs.community/t/cannot-save-download-documents-containing-shapes-in-8-7-0-reproducible-in-the-demo/2236/1 "2022-12-14T18:35:03Z")

</div>

Using the Shapes in version 8.7.0 of the Viewer causes an error when trying to save/download the document.

Steps to reproduce:

1. Open [PDF.js Viewer Demo | PDF.js Express](https://pdfjs.express/demo)
2. Add a shape such as an arrow.
3. Click Download.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/7/7839c7cfa3473727e09b0550102b3eaaca9549e5.png)

The error seems to come when executing `viewer.annotManager.exportAnnotations({})`.

This happens in our production product as well as your demo.

---

<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: [December 14, 2022, 6:56pm UTC](https://pdfjs.community/t/cannot-save-download-documents-containing-shapes-in-8-7-0-reproducible-in-the-demo/2236/3 "2022-12-14T18:56:51Z")

</div>

Hi there,

Thank you for reaching out the pdf.js express forums.

Please use this build to resolve that issue:  
[https://pdftron.s3.amazonaws.com/custom/ID-zJWLuhTffd3c/WebViewer/PDFJSExpress-8.7.0-36309-2.zip](https://pdftron.s3.amazonaws.com/custom/ID-zJWLuhTffd3c/WebViewer/PDFJSExpress-8.7.0-36309-2.zip)

Best regards,  
Kevin Kim
