We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating FreeText type of annotation
Disappearing FreeText annotation and got an error in console "Cannot read properties of undefined (reading 'color')"
download source code $ git clone https://github.com/adobe/pdf-embed-api-samples.git
$ git clone https://github.com/adobe/pdf-embed-api-samples.git
open index.html $ cd pdf-embed-api-samples/More\ Samples/PDF\ Annotations\ APIs/CRUD\ APIs/ $ google-chrome index.html
$ cd pdf-embed-api-samples/More\ Samples/PDF\ Annotations\ APIs/CRUD\ APIs/
$ google-chrome index.html
Drag and drop FreeText or Change the color FreeText. Tested a "I added a text annotation!" from page 2
Disappear FreeText and got an error in console "Cannot read properties of undefined (reading 'color')"
viewSDKAppVersion: 2.31.1_3.1.1-ef137c6f
https://github.com/adobe/pdf-embed-api-samples/tree/master/More%20Samples/PDF%20Annotations%20APIs/CRUD%20APIs
[ { "level": "error", "message": "TypeError: Cannot read properties of undefined (reading 'color')\n at FreeTextCommentView.initializeValues (https://documentservices.adobe.com/dc-comments-dropin/2.31.1_1.940.0/bootstrap.js:2:2417979)\n at FreeTextCommentView.render (https://documentservices.adobe.com/dc-comments-dropin/2.31.1_1.940.0/bootstrap.js:2:2430391)\n at Object.allowStateChanges (https://documentservices.adobe.com/dc-core/2.31.1/dc-mobx.js:16:53236)\n at https://documentservices.adobe.com/dc-core/2.31.1/dc-mobx.js:1:10132\n at Yt (https://documentservices.adobe.com/dc-core/2.31.1/dc-mobx.js:16:45501)\n at e.track (https://documentservices.adobe.com/dc-core/2.31.1/dc-mobx.js:16:48113)\n at FreeTextCommentView.l [as render] (https://documentservices.adobe.com/dc-core/2.31.1/dc-mobx.js:1:10063)\n at gi (https://documentservices.adobe.com/dc-core/2.31.1/dc-core.js:2:71411)\n at fi (https://documentservices.adobe.com/dc-core/2.31.1/dc-core.js:2:71206)\n at uo (https://documentservices.adobe.com/dc-core/2.31.1/dc-core.js:2:107112) [object Object]", "sessionId": "c6cacf76-6e70-4267-b22d-4d1c3213a38c", "viewSDKAppVersion": "2.31.1_3.1.1-ef137c6f", "tenantId": "http://localhost:8000", "callingApp": "dc-view-sdk", "externalUserId": "http://localhost:8000/xxxxx/xxxxx/xxx/xxxxx/xxx/xxxxxx", "clientId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "client_timestamp": "2022-11-25T02:14:10.332Z", "context": "ErrorBoundary", "dropinId": "dc-comments", "adb.event.context.AcrobatJS.isModernViewer": true } ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behaviour
Updating FreeText type of annotation
Actual Behaviour
Disappearing FreeText annotation and got an error in console "Cannot read properties of undefined (reading 'color')"
Reproduce Scenario (including but not limited to)
Steps to Reproduce
download source code
$ git clone https://github.com/adobe/pdf-embed-api-samples.git
open index.html
$ cd pdf-embed-api-samples/More\ Samples/PDF\ Annotations\ APIs/CRUD\ APIs/
$ google-chrome index.html
Drag and drop FreeText or Change the color FreeText.
Tested a "I added a text annotation!" from page 2
Disappear FreeText and got an error in console "Cannot read properties of undefined (reading 'color')"
Platform and Version
viewSDKAppVersion: 2.31.1_3.1.1-ef137c6f
Sample Code that illustrates the problem
https://github.com/adobe/pdf-embed-api-samples/tree/master/More%20Samples/PDF%20Annotations%20APIs/CRUD%20APIs
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: