Skip to main content
Participant
April 18, 2023
Question

[BUG] PDF Embed API: Cannot update FreeText comment when "enableAnnotationAPIs: true"

  • April 18, 2023
  • 1 reply
  • 1097 views

FreeText comments cannot be updated when we pass:

enableAnnotationAPIs: true

to the viewer config object

 

The following error is shown:

 

act-dom.production.min.js:189 TypeError: Cannot read properties of undefined (reading 'color')
    at FreeTextCommentView.initializeValues (FreeTextCommentView.jsx:187:72)
    at FreeTextCommentView.render (FreeTextCommentView.jsx:754:10)
    at Object.allowStateChanges (mobx.module.js:969:15)
    at index.module.js:780:33
    at Zt (mobx.module.js:3120:20)
    at e.track (mobx.module.js:3330:22)
    at FreeTextCommentView.l [as render] (index.module.js:775:22)
    at kj (react-dom.production.min.js:204:189)
    at ij (react-dom.production.min.js:203:149)
    at Lo (react-dom.production.min.js:292:172)
M

 

 

    This topic has been closed for replies.

    1 reply

    Participant
    April 18, 2023

    I am using the latest version but upon more investigation, I'm now noticing this issue has also been reported by another user here:

    https://github.com/adobe/pdf-embed-api-samples/issues/47

    So I dont think it was caused by recent updates. Please follow the link to the reproducer there.