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

[Embed API] Cannot move text comment when enableAnnotationAPIs is true.

Community Beginner ,
Nov 22, 2022 Nov 22, 2022

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')"

 

203222539-e770b303-0e9d-489c-adb6-23cfafa2b3b8.png

4.0K
Translate
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 ,
Nov 24, 2022 Nov 24, 2022

I have the same problem.

 

  1. enableAnnotationAPIs.
  2. add new FreeText(comment box).
  3. move(or change color) that FreeText.
  4. it will be disappear and got an error in console "Cannot read properties of undefined (reading 'color')"

 

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

5ED2_1-1669292119204.png

screenshot - 2: when Drag and Drop comment box or change the other color

5ED2_2-1669292160299.png

 

 

 

 

 

 

5ED2_3-1669292232824.png

 

 

 

 

Translate
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 ,
Nov 24, 2022 Nov 24, 2022

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
}]
Translate
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
Adobe Employee ,
Mar 08, 2023 Mar 08, 2023

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?

Translate
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 ,
Mar 08, 2023 Mar 08, 2023

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'

Translate
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 ,
Mar 08, 2023 Mar 08, 2023

api_bug.gif

Translate
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
Participant ,
Mar 08, 2023 Mar 08, 2023
Only freeform txt comment
Translate
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
Adobe Employee ,
Mar 08, 2023 Mar 08, 2023

Boom, that was it. Filing a bug report now.

Translate
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
Participant ,
Mar 29, 2023 Mar 29, 2023

How do we follow along on the status of the bug? @Raymond Camden 

Translate
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
Adobe Employee ,
Mar 30, 2023 Mar 30, 2023

Unfortunately the best I can offer is updating the forums when we release an update.

Translate
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
Participant ,
Apr 05, 2023 Apr 05, 2023

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.

Translate
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
Adobe Employee ,
Apr 05, 2023 Apr 05, 2023

I'll pass this on to the right people - best I can do - I appreciate the honesty.

Translate
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
Participant ,
Apr 05, 2023 Apr 05, 2023

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.

Translate
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
Community Beginner ,
Apr 20, 2023 Apr 20, 2023

So, it seems like this bug wasn't fixed with the last update?

Translate
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
Adobe Employee ,
Apr 20, 2023 Apr 20, 2023

No I don't believe so.

Translate
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 ,
May 09, 2023 May 09, 2023

what if you disable (temporary) text comments for the convenience of commenting, until this bug fixed, thank you.

Translate
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
Participant ,
Jun 09, 2023 Jun 09, 2023

@Raymond Camden any update?

Translate
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
Adobe Employee ,
Jun 09, 2023 Jun 09, 2023

Unless I'm wrong - it seems fixed now?

Translate
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
Participant ,
Jun 09, 2023 Jun 09, 2023

Now it is fixed, how do we keep up to date with when bugs are closed??

Translate
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
Adobe Employee ,
Jun 09, 2023 Jun 09, 2023
LATEST

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/

Translate
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
Explorer ,
Jan 08, 2023 Jan 08, 2023

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.

Translate
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
Participant ,
Mar 04, 2023 Mar 04, 2023

SAME problem here how is this not fixed? It is such an important feature and been months.

Translate
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 ,
Mar 08, 2023 Mar 08, 2023

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?

Translate
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
Participant ,
Mar 08, 2023 Mar 08, 2023
You can actually enable the annotation apis you just have to modify your
event handler to throw a window alert every time the user presses the text
comment, and then call the annotation manager method that ends annotation
mode.

I have added something saying “this annotation type is currently not
supported”

It just stinks because people want to use it
Translate
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 ,
Mar 08, 2023 Mar 08, 2023

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.

Translate
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