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

AddAnnotations Undo does not make sense

Participant ,
Nov 22, 2023 Nov 22, 2023

When using AddAnnotations API, the Undo icon appears.. but I'm loading annotations in from my servers database...

 

https://community.adobe.com/t5/acrobat-services-api-discussions/comments-and-markup-annotations-undo...

 

2. Undo/Redo

When I save the comments my server and reload them on a different computer, the "undo/redo" buttons appear immediately, and I can undo all the previous comments added from other users. Is there any way of blocking this?

 

 

 

Why are you able to undo annotations that werent inserted from the user? The undo button appearing is incredibly confusing for users who never added any annotations. What is there for them to undo??

 

Why is there two methods for AddAnnotations and AddAnnotationsInPdf also?

1.3K
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 ,
Nov 22, 2023 Nov 22, 2023
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 ,
Nov 27, 2023 Nov 27, 2023

I'm adding a bug report for Undo showing up after annotations are added via API.

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 ,
Dec 09, 2023 Dec 09, 2023

@Raymond Camden any update on when this will be prioritized and deployed to production?

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 ,
Dec 11, 2023 Dec 11, 2023
LATEST

Nope. 

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 27, 2023 Nov 27, 2023

Additionally, it doesn't make sense that any annotations added by annotationManager.addAnnotations get emitted as 

ANNOTATION_ADDED events. Or if so, there needs to be a way to detect whether the item was added by the system or by the user.
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 ,
Nov 28, 2023 Nov 28, 2023

In regards to the event firing: Honestly I don't agree. If I tell the system to let me know when an annotation is added, no matter what the source. In the end, I'd rather the code always run and use code to programatically ignore when necessary. In this case (and I haven't looked at the code in an annotation object in a while), I'd imagine you could look at the timestamp.

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 27, 2023 Nov 27, 2023

I think that in a lot of cases where you are managing storing of the PDF annotations and updating using your own system, you don't actually want the undo/redo feature at all. For example, it is quite difficult to safely handle the cases where a user deletes another user's comment and then undoes this delete.

 

I would love an option that allows it to be disabled entirely, or disabled by default when 

enableAnnotationAPIs is active.
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