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

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
  2. Add a shape such as an arrow.
  3. Click Download.

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

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

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

Best regards,
Kevin Kim