Test Setup
I created an simple environment to reproduce the problem.
- $ git clone https://github.com/nolnol2/pdfjs-express-react-sample
- $ git checkout origin/freetext_issue -b freetext_issue
- npm start
Test scenario
This sample is exported when mouseRightDown and imported when dblClick.
- Modify the contents of FreetextAnnoation.
- Export.
- import
- An error occurred.
If you do not modify the contents of FreetextAnnoation, no error occurs.
Detailed description of issue
After edting, export annotation and I get this xfdf string
An error occurs when importing. And importing all annotations fail…
This is a very critical issue for us.
Hope it solves.
Expected behaviour
I hope that the freetext annotation can be properly modified and exported.
I would like to see the modified contents when importing.
Error
CoreControls.js:789 Uncaught TypeError: Cannot read property ‘AU’ of undefined
at webpack_exports .e.Rv (VM451 CoreControls.js:789)
at webpack_exports .e.Rk (VM451 CoreControls.js:790)
at ba.Rk (VM451 CoreControls.js:217)
at ba.Rk (VM451 CoreControls.js:331)
at ba.DX (VM451 CoreControls.js:324)
at ba.Pd (VM451 CoreControls.js:323)
at n.f.Nk (VM451 CoreControls.js:293)
at VM451 CoreControls.js:242
at Array.forEach ()
at VM451 CoreControls.js:242