• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Apr 18, 2023 Apr 18, 2023

Copy link to clipboard

Copied

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

 

 

Views

220

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 18, 2023 Apr 18, 2023

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources