# Import fails after editing freetext annotation

**URL:** https://pdfjs.community/t/import-fails-after-editing-freetext-annotation/289
**Category:** Technical Support
**Tags:** pdfjs-express
**Created:** [September 24, 2020, 3:01am UTC](https://pdfjs.community/t/import-fails-after-editing-freetext-annotation/289 "2020-09-24T03:01:42Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![blocko\_developers](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@blocko\_developers](https://pdfjs.community/u/blocko_developers)
#### Post date: [September 24, 2020, 3:01am UTC](https://pdfjs.community/t/import-fails-after-editing-freetext-annotation/289/1 "2020-09-24T03:01:42Z")

</div>

**Test Setup**  
I created an simple environment to reproduce the problem.

1. $ git clone [https://github.com/nolnol2/pdfjs-express-react-sample](https://github.com/nolnol2/pdfjs-express-react-sample)
2. $ git checkout origin/freetext\_issue -b freetext\_issue
3. npm start

**Test scenario**

This sample is exported when mouseRightDown and imported when dblClick.

1. Modify the contents of FreetextAnnoation.
2. Export.
3. import
4. 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

---

_[View the full topic](https://pdfjs.community/t/import-fails-after-editing-freetext-annotation/289)._
