Copy link to clipboard
Copied
If I enabled the enableAnnotationAPIs then add text comment into pdf file. When I move that text comment box, it will be disappear and got an error in console "Cannot read properties of undefined (reading 'color')"
Copy link to clipboard
Copied
I have the same problem.
I found the same thing in adobe/pdf-embed-api-samples too.
1. download source code
1-1. git clone https://github.com/adobe/pdf-embed-api-samples.git
2. open index.html
2-1. pdf-embed-api-samples/More Samples/PDF Annotations APIs/CRUD APIs/index.html
3. Drag and Drop the "I added a text annotation!" comment or change the other color
4. Disappear FreeText and got an error in console "Cannot read properties of undefined (reading 'color')"
screenshot - 1: open index.html file
screenshot - 2: when Drag and Drop comment box or change the other color
Copy link to clipboard
Copied
payload
[{
"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":"1092f9eda48046cb93789d3346cc6b8b",
"client_timestamp":"2022-11-25T02:14:10.332Z",
"context":"ErrorBoundary",
"dropinId":"dc-comments",
"adb.event.context.AcrobatJS.isModernViewer":true
}]
Copy link to clipboard
Copied
I'm having trouble replicating this. I built a CodePen here, https://codepen.io/cfjedimaster/pen/zYJEMem, where I've enabled the annotation APIs. I adda comment, move it or change the color, and it doesn't throw an error. Does your issue happen on my CodePen?
Copy link to clipboard
Copied
That CodePen errors for me, in Chrome.
I add a text comment, then drag it. It dissappears, and the console outputs the 'TypeError: Cannot read properties of undefined (reading 'color')' error as mentioned above.
It doesn't error for a comment, only for 'Add text comment'
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Boom, that was it. Filing a bug report now.
Copy link to clipboard
Copied
How do we follow along on the status of the bug? @Raymond Camden
Copy link to clipboard
Copied
Unfortunately the best I can offer is updating the forums when we release an update.
Copy link to clipboard
Copied
Hi Raymond,
I appreciate the update, honestly, what I would say is if this PDF Embed API is planning on being a production grade product, proper SLA's on support and more communication via forums is absolutely imperative.
If this is not going to be the case from Adobe, I and others will need to migrate to a PDF viewer with proper support.
Copy link to clipboard
Copied
I'll pass this on to the right people - best I can do - I appreciate the honesty.
Copy link to clipboard
Copied
Of course, you have been wonderful, but looking at the amount of work of the forum, etc. G-d forbid if there is a production issue, an application reliant solely on document processing/viewing/annotating cannot afford to lose functionality for however long it takes here.
Copy link to clipboard
Copied
So, it seems like this bug wasn't fixed with the last update?
Copy link to clipboard
Copied
No I don't believe so.
Copy link to clipboard
Copied
what if you disable (temporary) text comments for the convenience of commenting, until this bug fixed, thank you.
Copy link to clipboard
Copied
@Raymond Camden any update?
Copy link to clipboard
Copied
Unless I'm wrong - it seems fixed now?
Copy link to clipboard
Copied
Now it is fixed, how do we keep up to date with when bugs are closed??
Copy link to clipboard
Copied
As our bug system is internal, we can't inform folks on specific bugs, but it was mentioned in the release notes: https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/releasenotes/
Copy link to clipboard
Copied
Same problem here. I move the added text box and it along with other annotations I've made disappear. This is becoming a major problem for my client. Please fix ASAP.
Copy link to clipboard
Copied
SAME problem here how is this not fixed? It is such an important feature and been months.
Copy link to clipboard
Copied
Yes, this needs to be looked at as a priority, it effectively means that the AnnotationAPI cannot be enabled at all at the moment.
Can anyone from Adobe assist with this?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I've found just simply having the annotation API enabled and then trying to move an existing text annotation triggers the error. So it's not even about using it to insert new annotations, it appeared to break the ability to move existing ones on a document. (but I appreciate your suggestion of a workaround)
My use-case is that I'm just wanting a quick way to insert a checkbox character onto a document, one that a user can then just drag next to a paragraph.